From 36019f03b667cc02fa8f10e9253d7ae40a360a31 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sun, 9 Oct 2011 02:58:56 +1100 Subject: [PATCH] bugfix: Tinyboard was trying to PURGE /tmp files --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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