diff options
author | Andreas Gohr <andi@splitbrain.org> | 2008-12-12 23:26:14 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2008-12-12 23:26:14 +0100 |
commit | 58e3a7bfa7f0c76b0f4131110c36536ecd16c313 (patch) | |
tree | bc268241132d830b6d6ceb9a1ab30459d67babd1 /inc | |
parent | 5c93146ab7565d6e2d3c15fd2e71564216883f32 (diff) | |
download | rpg-58e3a7bfa7f0c76b0f4131110c36536ecd16c313.tar.gz rpg-58e3a7bfa7f0c76b0f4131110c36536ecd16c313.tar.bz2 |
ignore purge command when HTTP referer is set
darcs-hash:20081212222614-7ad00-0b69e3b788b8ee3423cbbd9fb32868234ca679ca.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/init.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/init.php b/inc/init.php index 703fd4a38..8d094ef66 100644 --- a/inc/init.php +++ b/inc/init.php @@ -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(); |