Skip to content
Snippets Groups Projects
Commit 3dea4ebc authored by Andreas Gohr's avatar Andreas Gohr
Browse files

moved no purg on referer code to the correct position

darcs-hash:20081212225011-7ad00-dbd829b7c617cc519735525522c3155df506cb2b.gz
parent b328697d
No related branches found
No related tags found
No related merge requests found
...@@ -33,9 +33,6 @@ ...@@ -33,9 +33,6 @@
error_reporting(DOKU_E_LEVEL); 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 // init memory caches
global $cache_revinfo; $cache_revinfo = array(); global $cache_revinfo; $cache_revinfo = array();
global $cache_wikifn; $cache_wikifn = array(); global $cache_wikifn; $cache_wikifn = array();
...@@ -154,6 +151,9 @@ ...@@ -154,6 +151,9 @@
// don't let cookies ever interfere with request vars // don't let cookies ever interfere with request vars
$_REQUEST = array_merge($_GET,$_POST); $_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 // disable gzip if not available
if($conf['compression'] == 'bz2' && !function_exists('bzopen')){ if($conf['compression'] == 'bz2' && !function_exists('bzopen')){
$conf['compression'] = 'gz'; $conf['compression'] = 'gz';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment