mirror of
https://github.com/Circlepuller/Tinyboard.git
synced 2025-01-18 05:48:34 +01:00
bugfix: Tinyboard was trying to PURGE /tmp files
This commit is contained in:
parent
ea2e4f12f8
commit
57f652f804
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user