Disabled Base36 fascism redirect for download (probably some ugly hack out there)
authorHarvie <tomas@mudrunka.cz>
Sat, 11 Dec 2010 18:04:57 +0000 (19:04 +0100)
committerHarvie <tomas@mudrunka.cz>
Sat, 11 Dec 2010 18:04:57 +0000 (19:04 +0100)
wwwroot/nodes.php

index 9da99532f7f09664c8936eb57cb1ed60c970d8cc..3687d0803a8047ec799fabab7d6e602e7d63f518 100644 (file)
@@ -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):'')
This page took 0.119638 seconds and 4 git commands to generate.