svn: /web/php-bugs/trunk/include/ auth.inc

From: Date: Wed, 04 Nov 2009 22:37:35 +0000
Subject: svn: /web/php-bugs/trunk/include/ auth.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-6370@lists.php.net to get a copy of this message
bjori Wed, 04 Nov 2009 22:37:35 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=290221 Log: Make sure we have both username and password Should fix bug#49596 Bug: http://bugs.php.net/49596 (Open) Error messages when submitting comments to bugs Changed paths: U web/php-bugs/trunk/include/auth.inc Modified: web/php-bugs/trunk/include/auth.inc =================================================================== --- web/php-bugs/trunk/include/auth.inc 2009-11-04 22:05:59 UTC (rev 290220) +++ web/php-bugs/trunk/include/auth.inc 2009-11-04 22:37:35 UTC (rev 290221) @@ -43,7 +43,7 @@ // 0 = username, 1 = password $c = explode(':', base64_decode($_COOKIE['MAGIC_COOKIE']), 2); - if (!$c[0]) { + if (!$c[0] || !$c[1]) { // The "remember me" for bug reports (non-devs) feature uses MAGIC_COOKIE without username return false; } @@ -54,3 +54,4 @@ return true; } +

« previous php.webmaster (#6370) next »