cvs: pear /Pager Common.php
| From: | Lorenzo Alberton | Date: | Wed, 06 Apr 2005 16:12:34 +0000 |
| Subject: | cvs: pear /Pager Common.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-30981@lists.php.net to get a copy of this message | ||
quipo Wed Apr 6 12:12:34 2005 EDT
Modified files:
/pear/Pager Common.php
Log:
strip querystring
http://cvs.php.net/diff.php/pear/Pager/Common.php?r1=1.33&r2=1.34&ty=u
Index: pear/Pager/Common.php
diff -u pear/Pager/Common.php:1.33 pear/Pager/Common.php:1.34
--- pear/Pager/Common.php:1.33 Fri Apr 1 08:04:53 2005
+++ pear/Pager/Common.php Wed Apr 6 12:12:33 2005
@@ -18,7 +18,7 @@
* @author Richard Heyes <richard@phpguru.org>
* @copyright 2003-2005 Lorenzo Alberton, Richard Heyes
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: Common.php,v 1.33 2005/04/01 13:04:53 quipo Exp $
+ * @version CVS: $Id: Common.php,v 1.34 2005/04/06 16:12:33 quipo Exp $
* @link http://pear.php.net/package/Pager
*/
@@ -30,7 +30,7 @@
define('CURRENT_FILENAME', '');
define('CURRENT_PATHNAME', str_replace('\\', '/',
$_SERVER['PHP_SELF']));
} else {
- define('CURRENT_FILENAME', basename($_SERVER['PHP_SELF']));
+ define('CURRENT_FILENAME', preg_replace('/(.*)\?.*/', '\\1',
basename($_SERVER['PHP_SELF'])));
define('CURRENT_PATHNAME', str_replace('\\', '/',
dirname($_SERVER['PHP_SELF'])));
}
/**