cvs: phpweb / error.php
| From: | Gabor Hojtsy | Date: | Sun, 10 Aug 2003 10:51:09 +0000 |
| Subject: | cvs: phpweb / error.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-20108@lists.php.net to get a copy of this message | ||
goba Sun Aug 10 06:51:09 2003 EDT
Modified files:
/phpweb error.php
Log:
Also remove ? if it is at the very end of the request URI
Index: phpweb/error.php
diff -u phpweb/error.php:1.3 phpweb/error.php:1.4
--- phpweb/error.php:1.3 Sun Aug 10 06:48:37 2003
+++ phpweb/error.php Sun Aug 10 06:51:09 2003
@@ -1,6 +1,6 @@
<?php
-// $Id: error.php,v 1.3 2003/08/10 10:48:37 goba Exp $
+// $Id: error.php,v 1.4 2003/08/10 10:51:09 goba Exp $
/*
@@ -21,7 +21,7 @@
// See langchooser.inc for more info on STRIPPED_URI
// Also decode special URL parts, eg %20 into a space
$URI = substr($_SERVER['STRIPPED_URI'], 1);
-$URI = urldecode(preg_replace("!(\\?.+$)!", "", $URI));
+$URI = urldecode(preg_replace("!(\\?.*$)!", "", $URI));
// ============================================================================
// For images, display a 404 automatically (no redirect)