diff options
author | Andreas Gohr <andi@splitbrain.org> | 2008-12-12 23:50:11 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2008-12-12 23:50:11 +0100 |
commit | 3dea4ebc5f730a60750f86e532775810508acae5 (patch) | |
tree | ca0077495170120d267cf5bec051c8a1a74f2dab | |
parent | b328697d6cc1b17e86d7f66267b2eda69be318a5 (diff) | |
download | rpg-3dea4ebc5f730a60750f86e532775810508acae5.tar.gz rpg-3dea4ebc5f730a60750f86e532775810508acae5.tar.bz2 |
moved no purg on referer code to the correct position
darcs-hash:20081212225011-7ad00-dbd829b7c617cc519735525522c3155df506cb2b.gz
-rw-r--r-- | inc/init.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/init.php b/inc/init.php index b70dbabe9..e721cdb6c 100644 --- a/inc/init.php +++ b/inc/init.php @@ -33,9 +33,6 @@ 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(); @@ -154,6 +151,9 @@ // don't let cookies ever interfere with request vars $_REQUEST = array_merge($_GET,$_POST); + // we don't want a purge URL to be digged + if($_REQUEST['purge'] && $_SERVER['HTTP_REFERER']) unset($_REQUEST['purge']); + // disable gzip if not available if($conf['compression'] == 'bz2' && !function_exists('bzopen')){ $conf['compression'] = 'gz'; |