git-svn-id: https://develop.svn.wordpress.org/trunk@2065 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-01-07 01:24:33 +00:00
parent 1eb6a8e91d
commit f117835950
1 changed files with 2 additions and 2 deletions

View File

@ -33,9 +33,9 @@ function StaticizeInit() {
global $staticFileName, $acceptableFiles, $timestart, $http;
$key = $_SERVER['REQUEST_URI'] . join($_COOKIE, ',');
$script = basename($_SERVER['SCRIPT_NAME']);
$script = basename($_SERVER['PHP_SELF']);
if( strstr($_SERVER['SCRIPT_NAME'], 'wp-') && !in_array($script, $acceptableFiles) )
if( strstr($_SERVER['PHP_SELF'], 'wp-') && !in_array($script, $acceptableFiles) )
return;
$staticFileName = md5($key) . '.php';