cvs: phpweb /error index.php
| From: | Gabor Hojtsy | Date: | Fri, 27 Jun 2003 10:57:10 +0000 |
| Subject: | cvs: phpweb /error index.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-18983@lists.php.net to get a copy of this message | ||
goba Fri Jun 27 06:57:10 2003 EDT
Modified files:
/phpweb/error index.php
Log:
Urldecode() the URI, so search URLs with
spaces will work. I don't think of any other side
effect of this, and hope it has none...
Index: phpweb/error/index.php
diff -u phpweb/error/index.php:1.124 phpweb/error/index.php:1.125
--- phpweb/error/index.php:1.124 Mon Jun 2 13:19:19 2003
+++ phpweb/error/index.php Fri Jun 27 06:57:10 2003
@@ -1,6 +1,6 @@
<?php
-// $Id: index.php,v 1.124 2003/06/02 17:19:19 alindeman Exp $
+// $Id: index.php,v 1.125 2003/06/27 10:57:10 goba Exp $
/*
@@ -18,7 +18,8 @@
// Get URI for this request (without the leading slash)
// See langchooser.inc for more info on STRIPPED_URI
-$URI = substr($_SERVER['STRIPPED_URI'], 1);
+// Also decode special URL parts, eg %20 into a space
+$URI = urldecode(substr($_SERVER['STRIPPED_URI'], 1));
// ============================================================================
// For images, display a 404 automatically (no redirect)