Browse Source

bugfix: Tinyboard was trying to PURGE /tmp files

pull/40/head
Savetheinternet 13 years ago
parent
commit
57f652f804
  1. 2
      inc/functions.php

2
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

Loading…
Cancel
Save