From: Harvie Date: Sat, 11 Dec 2010 18:04:57 +0000 (+0100) Subject: Disabled Base36 fascism redirect for download (probably some ugly hack out there) X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=93748c084e763b90b262dae8e3abb5ea1be9eddb;p=mirrors%2FKyberia-bloodline.git Disabled Base36 fascism redirect for download (probably some ugly hack out there) --- diff --git a/wwwroot/nodes.php b/wwwroot/nodes.php index 9da9953..3687d08 100644 --- a/wwwroot/nodes.php +++ b/wwwroot/nodes.php @@ -53,6 +53,7 @@ if($PATH_INFO != '') { if(isset($PATH_CHUNKS[3]) && $PATH_CHUNKS[3] != '') $_GET['template_id'] = $PATH_CHUNKS[3]; //Base36 fascism redirect + if($_GET['template_id'] == 'download') break; //Fix ugly download hack... if(!count($_POST)) { header('Location: /k/'.base_convert($_GET['node_id'], 10, 36). (isset($_GET['template_id'])?'/'.base_convert($_GET['template_id'], 10, 36):'')