summaryrefslogtreecommitdiff
path: root/inc/init.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2008-12-12 23:50:11 +0100
committerAndreas Gohr <andi@splitbrain.org>2008-12-12 23:50:11 +0100
commit3dea4ebc5f730a60750f86e532775810508acae5 (patch)
treeca0077495170120d267cf5bec051c8a1a74f2dab /inc/init.php
parentb328697d6cc1b17e86d7f66267b2eda69be318a5 (diff)
downloadrpg-3dea4ebc5f730a60750f86e532775810508acae5.tar.gz
rpg-3dea4ebc5f730a60750f86e532775810508acae5.tar.bz2
moved no purg on referer code to the correct position
darcs-hash:20081212225011-7ad00-dbd829b7c617cc519735525522c3155df506cb2b.gz
Diffstat (limited to 'inc/init.php')
-rw-r--r--inc/init.php6
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';