cvs: php-master-web /include login.inc
| From: | Wez Furlong | Date: | Sat, 12 Mar 2005 15:30:54 +0000 |
| Subject: | cvs: php-master-web /include login.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-27662@lists.php.net to get a copy of this message | ||
wez Sat Mar 12 10:30:54 2005 EDT
Modified files:
/php-master-web/include login.inc
Log:
fix for people that have : in their password
http://cvs.php.net/diff.php/php-master-web/include/login.inc?r1=1.7&r2=1.8&ty=u
Index: php-master-web/include/login.inc
diff -u php-master-web/include/login.inc:1.7 php-master-web/include/login.inc:1.8
--- php-master-web/include/login.inc:1.7 Sun Jun 20 05:55:13 2004
+++ php-master-web/include/login.inc Sat Mar 12 10:30:53 2005
@@ -1,5 +1,5 @@
<?php
-/* $Id: login.inc,v 1.7 2004/06/20 09:55:13 goba Exp $ */
+/* $Id: login.inc,v 1.8 2005/03/12 15:30:53 wez Exp $ */
include_once 'cvs-auth.inc';
include_once 'functions.inc';
@@ -21,7 +21,7 @@
// Preserve information previously set in magic cookie if available
if (isset($_COOKIE['MAGIC_COOKIE']) && !isset($_POST['user'])
&& !isset($_POST['pw'])) {
- list($user, $pw) = explode(":", base64_decode($_COOKIE['MAGIC_COOKIE']));
+ list($user, $pw) = explode(":", base64_decode($_COOKIE['MAGIC_COOKIE']),
2);
}
// Login form, if the user is not yet logged in