From 48665d389b9bb386283c08172b24f3af26628bce Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 14 Aug 2005 14:47:31 +0200 Subject: fix for external images and the media rewrite patch darcs-hash:20050814124731-7ad00-9ec2fa2e3a188e3d0b06fc3f15135a05dc99d3dd.gz --- inc/pageutils.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'inc/pageutils.php') diff --git a/inc/pageutils.php b/inc/pageutils.php index d81d22a58..e22dc3c86 100644 --- a/inc/pageutils.php +++ b/inc/pageutils.php @@ -13,14 +13,18 @@ * Uses either standard $_REQUEST variable or extracts it from * the full request URI when userewrite is set to 2 * - * Returns $conf['start'] if no id was found and $param is 'id' + * For $param='id' $conf['start'] is returned if no id was found + * and the returned ID will be cleaned. For other params the + * cleaning has to be done outside this function * * @author Andreas Gohr */ function getID($param='id'){ global $conf; - $id = cleanID($_REQUEST[$param]); + $id = $_REQUEST[$param]; + + if($param == 'id') $id = cleanID($id); //construct page id from request URI if(empty($id) && $conf['userewrite'] == 2){ -- cgit v1.2.3