mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-31 04:13:49 +01:00
bugfix: Tinyboard was trying to PURGE /tmp files
This commit is contained in:
parent
5e02493e6b
commit
36019f03b6
@ -331,7 +331,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$ret = @unlink($path);
|
$ret = @unlink($path);
|
||||||
if(isset($config['purge']) && isset($_SERVER['HTTP_HOST'])) {
|
if(isset($config['purge']) && $path[0] != '/' && isset($_SERVER['HTTP_HOST'])) {
|
||||||
// Purge cache
|
// Purge cache
|
||||||
if(basename($path) == $config['file_index']) {
|
if(basename($path) == $config['file_index']) {
|
||||||
// Index file (/index.html); purge "/" as well
|
// Index file (/index.html); purge "/" as well
|
||||||
|
Loading…
x
Reference in New Issue
Block a user