SQL dump pro posledni verzi skladu
[mirrors/SokoMan.git] / assistants / go.inc.php
index d488e5edc982cbbe3aae6dca5fffae8790df8b5f..8b09bb609310a29b44ffd1751e4571603c8989ae 100644 (file)
@@ -1,6 +1,7 @@
 <?php
+if(!isset($_GET['q'])) $this->post_redirect_get('',"This assistant shouldn't be used like this");
 $id=$_GET['q'];
 $barcode_prefix_regexp = '/^'.preg_replace('/\//', '\/', BARCODE_PREFIX).'/';
 if(preg_match($barcode_prefix_regexp, $id)) $id=preg_replace($barcode_prefix_regexp, '', $id);
-if(preg_match('/\//', $id)) $this->post_redirect_get($id);
+if(preg_match('/\//', $id)) $this->post_redirect_get(strtolower($id));
        else $this->post_redirect_get('?q='.urlencode($id));
This page took 0.111655 seconds and 4 git commands to generate.