S.F.E. Support Forum Index S.F.E. Support
Support, Bug Reports, and Discussion Forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Go to Scripts for Educators main Page 
 Donate (Cash, Time, Thanks, Kind words :-) !)

Note (2011-Jan-31): I am SO sorry but due to hundreds of spam accounts
signing up every day almost all with gmail or ymail addresses, I've had
to TEMPORARILY block gmail signups here.

PLEASE email me at scripts@tesol.net (or through my email form here)
if you have gmail and really want to post and I'll set you up. :-) --Kristina

Bug fix for QuizTest (new version 3.0.27c)

 
Post new topic   Reply to topic    S.F.E. Support Forum Index -> Announcements/Update News
View previous topic :: View next topic  
Author Message
kristina
Yes, That Kristina :-)


Joined: 10 Aug 2002
Posts: 379
Location: USA

PostPosted: Fri Jan 09, 2004 10:26 am    Post subject: Bug fix for QuizTest (new version 3.0.27c) Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    S.F.E. Support Forum Index -> Announcements/Update News All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
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