svn: web/php-bugs/trunk/ bug.php fix.php report.php rpc.php search.php
| From: | Rasmus Lerdorf | Date: | Sun, 19 Jul 2009 21:17:23 +0000 |
| Subject: | svn: web/php-bugs/trunk/ bug.php fix.php report.php rpc.php search.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-5419@lists.php.net to get a copy of this message | ||
rasmus Sun, 19 Jul 2009 21:17:23 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=284387
Bugs: http://bugs.php.net/48978
Changed paths:
U web/php-bugs/trunk/bug.php
U web/php-bugs/trunk/fix.php
U web/php-bugs/trunk/report.php
U web/php-bugs/trunk/rpc.php
U web/php-bugs/trunk/search.php
Log:
Fix bug #48978
Modified: web/php-bugs/trunk/bug.php
===================================================================
--- web/php-bugs/trunk/bug.php 2009-07-19 21:08:22 UTC (rev 284386)
+++ web/php-bugs/trunk/bug.php 2009-07-19 21:17:23 UTC (rev 284387)
@@ -22,7 +22,7 @@
'/','.php.net');
}
if (isset($MAGIC_COOKIE) && !isset($user) && !isset($pw)) {
- list($user,$pw) = explode(":", base64_decode($MAGIC_COOKIE));
+ list($user,$pw) = explode(":", base64_decode($MAGIC_COOKIE),2);
}
@mysql_connect("localhost","nobody","") or die("Unable to
connect to SQL server.");
Modified: web/php-bugs/trunk/fix.php
===================================================================
--- web/php-bugs/trunk/fix.php 2009-07-19 21:08:22 UTC (rev 284386)
+++ web/php-bugs/trunk/fix.php 2009-07-19 21:17:23 UTC (rev 284387)
@@ -17,7 +17,7 @@
'/','.php.net');
}
if (isset($MAGIC_COOKIE) && !isset($user) && !isset($pw)) {
- list($user,$pw) = explode(":", base64_decode($MAGIC_COOKIE));
+ list($user,$pw) = explode(":", base64_decode($MAGIC_COOKIE),2);
}
$errors = array();
Modified: web/php-bugs/trunk/report.php
===================================================================
--- web/php-bugs/trunk/report.php 2009-07-19 21:08:22 UTC (rev 284386)
+++ web/php-bugs/trunk/report.php 2009-07-19 21:17:23 UTC (rev 284387)
@@ -15,7 +15,7 @@
setcookie("MAGIC_COOKIE",base64_encode("$user:$pw"),time()+3600*24*12,'/','.php.net');
}
if (isset($MAGIC_COOKIE) && !isset($user) && !isset($pw)) {
- list($user,$pw) = explode(":", base64_decode($MAGIC_COOKIE));
+ list($user,$pw) = explode(":", base64_decode($MAGIC_COOKIE),2);
}
/* See bugs.sql for the table layout. */
Modified: web/php-bugs/trunk/rpc.php
===================================================================
--- web/php-bugs/trunk/rpc.php 2009-07-19 21:08:22 UTC (rev 284386)
+++ web/php-bugs/trunk/rpc.php 2009-07-19 21:17:23 UTC (rev 284387)
@@ -9,7 +9,7 @@
require './include/auth.inc';
if (isset($_POST['MAGIC_COOKIE'])) {
- list($user,$pw) = explode(":", base64_decode($_POST['MAGIC_COOKIE']));
+ list($user,$pw) = explode(":", base64_decode($_POST['MAGIC_COOKIE']),2);
} else {
echo json_encode(array('result'=>array('error'=>'Missing
credentials')));
exit;
Modified: web/php-bugs/trunk/search.php
===================================================================
--- web/php-bugs/trunk/search.php 2009-07-19 21:08:22 UTC (rev 284386)
+++ web/php-bugs/trunk/search.php 2009-07-19 21:17:23 UTC (rev 284387)
@@ -2,7 +2,7 @@
require_once 'prepend.inc';
if (isset($MAGIC_COOKIE) && !isset($user) && !isset($pw)) {
- list($user,$pw) = explode(":", base64_decode($MAGIC_COOKIE));
+ list($user,$pw) = explode(":", base64_decode($MAGIC_COOKIE),2);
}
if ($search_for && !preg_match("/\\D/",trim($search_for))) {