cvs: phpweb /error index.php
| From: | Sascha Schumann | Date: | Sat, 05 May 2001 20:45:29 +0000 |
| Subject: | cvs: phpweb /error index.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-4913@lists.php.net to get a copy of this message | ||
sas Sat May 5 13:45:29 2001 EDT
Modified files:
/phpweb/error index.php
Log:
Put out a proper redirect header.
This also makes it easier to differentiate redirects from htsearch
invocations in the access log.
Index: phpweb/error/index.php
diff -u phpweb/error/index.php:1.23 phpweb/error/index.php:1.24
--- phpweb/error/index.php:1.23 Sat May 5 10:22:26 2001
+++ phpweb/error/index.php Sat May 5 13:45:29 2001
@@ -23,6 +23,7 @@
}
$urle = htmlspecialchars($url);
+ header("HTTP/1.0 302 Redirect");
header("Location: $url");
print "<html><title>Redirect to $urle</title><body>";
@@ -39,6 +40,7 @@
}
$urle = htmlspecialchars($url);
+ header("HTTP/1.0 302 Redirect");
header("Location: $url");
print "<html><title>Redirect to $urle</title><body>";
@@ -63,6 +65,7 @@
$try = find_manual_page($lang, $function);
if ($try) {
+ header("HTTP/1.0 302 Redirect");
header("Location: $try");
exit;
}