cvs: phpweb /error index.php

From: Date: Sat, 05 May 2001 17:22:26 +0000
Subject: cvs: phpweb /error index.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-4907@lists.php.net to get a copy of this message
sas Sat May 5 10:22:26 2001 EDT Modified files: /phpweb/error index.php Log: save 90% of htsearch invocations by ignoring accesses to URIs ending in .gif, .jpg and .pdf. Index: phpweb/error/index.php diff -u phpweb/error/index.php:1.22 phpweb/error/index.php:1.23 --- phpweb/error/index.php:1.22 Mon Apr 2 15:11:24 2001 +++ phpweb/error/index.php Sat May 5 10:22:26 2001 @@ -5,6 +5,11 @@ include_once "../configuration.inc"; } +if (preg_match('/\.(pdf|gif|jpg)$/', $REQUEST_URI)) { + print "404 Not found"; + exit; +} + $lang = $MIRRORS[$MYSITE][6]; if (!is_dir("$DOCUMENT_ROOT/manual/$lang")) { $lang = "en"; // fall back to English

« previous php.mirrors (#4907) next »