cvs: pearweb /public_html login.php
| From: | Daniel Convissor | Date: | Sun, 07 May 2006 23:14:14 +0000 |
| Subject: | cvs: pearweb /public_html login.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-4752@lists.php.net to get a copy of this message | ||
danielc Sun May 7 23:14:14 2006 UTC
Modified files:
/pearweb/public_html login.php
Log:
* Avoid notices by puting isset $_POST['PEAR_OLDURL'] check back before
further comparisons of that value. Also, remove parentheses because
all conditions are and's.
http://cvs.php.net/viewcvs.cgi/pearweb/public_html/login.php?r1=1.29&r2=1.30&diff_format=u
Index: pearweb/public_html/login.php
diff -u pearweb/public_html/login.php:1.29 pearweb/public_html/login.php:1.30
--- pearweb/public_html/login.php:1.29 Sun May 7 22:15:22 2006
+++ pearweb/public_html/login.php Sun May 7 23:14:14 2006
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: login.php,v 1.29 2006/05/07 22:15:22 pajoye Exp $
+ $Id: login.php,v 1.30 2006/05/07 23:14:14 danielc Exp $
*/
/*
@@ -66,16 +66,16 @@
/*
* Determine URL
*/
- if (!ereg('%3A%2F%2F', $_POST['PEAR_OLDURL']) &&
(isset($_POST['PEAR_OLDURL']) &&
- basename($_POST['PEAR_OLDURL']) != 'login.php') )
+ if (isset($_POST['PEAR_OLDURL'])
+ && basename($_POST['PEAR_OLDURL']) != 'login.php'
+ && !ereg('%3A%2F%2F', $_POST['PEAR_OLDURL']))
{
localRedirect($_POST['PEAR_OLDURL'], false);
} else {
localRedirect("/index.php", false);
- exit;
}
-
exit;
+
}
$msg = "";