diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-10-09 02:58:56 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-10-09 02:58:56 +1100 |
| commit | 57f652f8046ea44bec63e3b5e2b278e938e89303 (patch) | |
| tree | c61e8b8f24fa7804fac592ba588316a7fc8d08d3 | |
| parent | ea2e4f12f83abb3a48accf1c739744aa009250d4 (diff) | |
bugfix: Tinyboard was trying to PURGE /tmp files
| -rw-r--r-- | inc/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php index d5295b16..af45c014 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -331,7 +331,7 @@ } $ret = @unlink($path); - if(isset($config['purge']) && isset($_SERVER['HTTP_HOST'])) { + if(isset($config['purge']) && $path[0] != '/' && isset($_SERVER['HTTP_HOST'])) { // Purge cache if(basename($path) == $config['file_index']) { // Index file (/index.html); purge "/" as well |
