Commit | Line | Data |
---|---|---|
8acef003 | 1 | <?php |
8acef003 TM |
2 | $id=$_GET['q']; |
3 | $barcode_prefix_regexp = '/^'.preg_replace('/\//', '\/', BARCODE_PREFIX).'/'; | |
4 | if(preg_match($barcode_prefix_regexp, $id)) $id=preg_replace($barcode_prefix_regexp, '', $id); | |
5 | if(preg_match('/\//', $id)) $this->post_redirect_get($id); | |
6 | else $this->post_redirect_get('?q='.urlencode($id)); |