From 0868021bf5712da12fd19903d02210f25a573f5d Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 3 Feb 2006 16:39:45 +0100 Subject: 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 --- inc/pageutils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/pageutils.php') 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; } -- cgit v1.2.3