--- a/branches/2.6/cgi-bin/yabb2/Sources/Subs.pm
+++ b/branches/2.6/cgi-bin/yabb2/Sources/Subs.pm
@@ -19,7 +19,7 @@
 use English qw(-no_match_vars);
 our $VERSION = '2.6.0';
 
-$subspmver = 'YaBB 2.6.0 $Revision: 1421 $';
+$subspmver = 'YaBB 2.6.0 $Revision: 1424 $';
 
 if ($debug) { LoadLanguage('Debug'); }
 
@@ -1388,6 +1388,7 @@
         rand($INPUT_LINE_NUMBER) < 1 && ( $spam_question_rand = $_ );
     }
     fclose(SPAMQUESTIONS);
+    chomp $spam_question_rand;
     ( $spam_question_id, $spam_question, undef, $spam_questions_case, $spam_image ) =
       split /\|/xsm, $spam_question_rand;
     $spam_image = $spam_image ? qq~<div style="margin-top: .5em;"><img src="$yyhtml_root/Templates/Forum/default/$spam_image" alt="" /></div>~ : q{};