ignore purge command when HTTP referer is set

darcs-hash:20081212222614-7ad00-0b69e3b788b8ee3423cbbd9fb32868234ca679ca.gz
This commit is contained in:
Andreas Gohr 2008-12-12 23:26:14 +01:00
parent 5c93146ab7
commit 58e3a7bfa7
1 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,9 @@
error_reporting(DOKU_E_LEVEL);
}
// we don't want a purge URL to be digged
if($_REQUEST['purge'] && $_SERVER['HTTP_REFERER']) unset($_REQUEST['purge']);
// init memory caches
global $cache_revinfo; $cache_revinfo = array();
global $cache_wikifn; $cache_wikifn = array();