summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/actions.php3
-rw-r--r--inc/pageutils.php2
2 files changed, 3 insertions, 2 deletions
diff --git a/inc/actions.php b/inc/actions.php
index 315e35da8..eb43bb13f 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -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';
}
diff --git a/inc/pageutils.php b/inc/pageutils.php
index a6432619d..73be0a3a8 100644
--- a/inc/pageutils.php
+++ b/inc/pageutils.php
@@ -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;
}