X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Fnodes.php;h=f343695c4182986727aa797cf2a3b6e7a8c8e0ad;hb=4c113a6b8204cb0c446d0d7f1272f8995fd78378;hp=aafb3d4b7d086a5f41e1065a04fdc063b7a0fc17;hpb=207a7d7d0d752b807c37cd91eec843cd84434b5b;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/nodes.php b/wwwroot/nodes.php index aafb3d4..f343695 100644 --- a/wwwroot/nodes.php +++ b/wwwroot/nodes.php @@ -46,7 +46,7 @@ if (preg_match('/id\/([0-9]+)(?:\/([0-9]+)\/?)?/',$_SERVER['PATH_INFO'],$match)) $_GET['template_id']=$match[2]; } //Base36 fascism redirect - if($_GET['template_id'] != 'download' && !count($_POST)) { //Fix ugly download hack... + if(!count($_POST) && !(isset($_GET['template_id']) && $_GET['template_id'] == 'download')) { //Fix ugly download hack... header('Location: /k/'.base_convert($_GET['node_id'], 10, 36). (isset($_GET['template_id'])?'/'.base_convert($_GET['template_id'], 10, 36):'') );