Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /branches/2.6/cgi-bin/yabb2/Sources/Sessions.pm [r1499] .. [r1500] Maximize Restore

  Switch to side-by-side view

--- a/branches/2.6/cgi-bin/yabb2/Sources/Sessions.pm
+++ b/branches/2.6/cgi-bin/yabb2/Sources/Sessions.pm
@@ -14,7 +14,7 @@
 ###############################################################################
 our $VERSION = '2.6.0';
 
-$sessionspmver = 'YaBB 2.6.0 $Revision: 1416 $';
+$sessionspmver = 'YaBB 2.6.0 $Revision: 1500 $';
 if ( $action eq 'detailedversion' ) { return 1; }
 
 LoadLanguage('Sessions');
@@ -49,7 +49,7 @@
 }
 
 sub SessionReval2 {
-    require Sources::Decoder;
+#    require Sources::Decoder;
     $FORM{'cookielength'}   = 360;
     $FORM{'cookieneverexp'} = 1;
     if ( $FORM{'sesanswer'} eq q{} ) { fatal_error('no_secret_answer'); }
@@ -61,8 +61,8 @@
         chomp $answer;
     }
     else {
-        $question = descramble( ${ $uid . $username }{'sesanswer'}, $username );
-        $answer = $FORM{'sesanswer'};
+        $question = encode_password( ${ $uid . $username }{'sesanswer'} );
+        $answer =   encode_password( $FORM{'sesanswer'} );
 
         #       bug fix courtesy Derek Barnstorm;
         chomp $answer;