cvs: phpweb /error index.php
| From: | Gabor Hojtsy | Date: | Fri, 07 Feb 2003 15:16:21 +0000 |
| Subject: | cvs: phpweb /error index.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-15577@lists.php.net to get a copy of this message | ||
goba Fri Feb 7 10:16:21 2003 EDT
Modified files:
/phpweb/error index.php
Log:
Add something to the mirror selection URL, so dumb browsers won't think
that they are actually downloading a zip/exe file, expected after the
extension. Some browsers just does not seem to honor HTTP, and interpret
responses they way they like to...
Index: phpweb/error/index.php
diff -u phpweb/error/index.php:1.104 phpweb/error/index.php:1.105
--- phpweb/error/index.php:1.104 Sun Feb 2 15:30:01 2003
+++ phpweb/error/index.php Fri Feb 7 10:16:20 2003
@@ -73,7 +73,7 @@
// ============================================================================
// Nice URLs for download files, so wget works completely well with download links
-if (preg_match("!^get/([^/]+)$!", $URI, $filepart)) {
+if (preg_match("!^get/([^/]+)(/from/mirror)?$!", $URI, $filepart)) {
$df = $filepart[1];
include_once "$DOCUMENT_ROOT/get_download.php";
exit;