cvs: phpweb /error index.php
| From: | Gabor Hojtsy | Date: | Wed, 08 Jan 2003 19:11:21 +0000 |
| Subject: | cvs: phpweb /error index.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-14875@lists.php.net to get a copy of this message | ||
goba Wed Jan 8 14:11:21 2003 EDT
Modified files:
/phpweb/error index.php
Log:
URL without starting slash in pregs, but URLs with starting
slash in redirects...
Index: phpweb/error/index.php
diff -u phpweb/error/index.php:1.96 phpweb/error/index.php:1.97
--- phpweb/error/index.php:1.96 Wed Jan 8 14:07:54 2003
+++ phpweb/error/index.php Wed Jan 8 14:11:20 2003
@@ -26,10 +26,10 @@
// BC: handle moving english manual down into its own directory (also supports
// default language manual accessibilty on mirror sites through /manual/filename)
if (preg_match("!^manual/([^/]+)$!", $URI, $array)) {
- mirror_redirect("manual/$lang/$array[1]");
+ mirror_redirect("/manual/$lang/$array[1]");
} elseif (preg_match("!^manual/html/([^/]+)$!", $URI, $array)) {
preg_replace("!.html$!", ".php", $array[1]);
- mirror_redirect("manual/$lang/print/$array[1]");
+ mirror_redirect("/manual/$lang/print/$array[1]");
}
// ============================================================================