 |
S.F.E. Support Support, Bug Reports, and Discussion Forum
|
| View previous topic :: View next topic |
| Author |
Message |
kristina Yes, That Kristina :-)
Joined: 10 Aug 2002 Posts: 379 Location: USA
|
Posted: Fri Jan 09, 2004 10:26 am Post subject: Bug fix for QuizTest (new version 3.0.27c) |
|
|
Message sent to the QuizTest List:
---
Hi, folks. Well, it looks like I went a little overboard on
one of the last security fixes to QuizTest. This caused the
emails sent to the instructor to have no line-endings so it
all got mooshed up (that's the technical term) into a big
mess.
I have released a fix for this (v3.0.27c) and you can download
the new package here:
http://tesol.net/scripts/QuizTest/
Alternatively, if you want to patch yours yourself, it's
a very simple fix. In "sub send_mail," look for this bit:
# Basically, we're taking out any newlines or extraneous spaces
# plus any ", <>, commas, or single quotes as well before we
# attempt to send.
my ($hvar);
foreach $hvar (@headervars){
${$hvar} =~ s/\s+/ /sg;
${$hvar} =~ s/[\"<>,']//sg;
}
And right BEFORE that, put this line:
$CRLF = "\015\012"; # Make sure we have the correct line endings
Basically, I was swapping out newlines with "$CRLF" to
help on some systems with qmail, but I wasn't telling the
program what "$CRLF" was until after I had switched it
out. This resulted in all the line endings being replace with --
well -- with nothing, as some of you have noticed.
Big thanks to Kurt and Jack who alerted me to this bug!!!
Please keep those bug reports and suggestions coming!
Also, if this does not fix the problem for you, PLEASE let
me know.
Thanks!
Kristina |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|