Skip to content
Snippets Groups Projects
Commit 0868021b authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fix special char ID handling

A given ID consisting of special chars only (either added manually in the URL
or in the search box) will be ignored correctly now.

darcs-hash:20060203153945-7ad00-60fc38b49604f45bb2ca912a9c76c619ad60ac44.gz
parent 82fd59b6
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,8 @@ function act_dispatch(){
$ACT = act_clean($ACT);
//check if searchword was given - else just show
if($ACT == 'search' && empty($QUERY)){
$s = cleanID($QUERY);
if($ACT == 'search' && empty($s)){
$ACT = 'show';
}
......
......@@ -52,8 +52,8 @@ function getID($param='id',$clean=true){
//strip leading slashes
$id = preg_replace('!^/+!','',$id);
}
if(empty($id) && $param=='id') $id = $conf['start'];
if($clean) $id = cleanID($id);
if(empty($id) && $param=='id') $id = $conf['start'];
return $id;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment