From 45016cc46902d78333dc7c3a9348c4d0f8c45048 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 18 Aug 2007 21:23:39 +0000 Subject: url encode service parameter. --- framework/Web/TUrlManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Web') diff --git a/framework/Web/TUrlManager.php b/framework/Web/TUrlManager.php index f1eb888c..6e3562bf 100644 --- a/framework/Web/TUrlManager.php +++ b/framework/Web/TUrlManager.php @@ -54,7 +54,7 @@ class TUrlManager extends TModule */ public function constructUrl($serviceID,$serviceParam,$getItems,$encodeAmpersand,$encodeGetItems) { - $url=$serviceID.'='.$serviceParam; + $url=$serviceID.'='.urlencode($serviceParam); $amp=$encodeAmpersand?'&':'&'; $request=$this->getRequest(); if(is_array($getItems) || $getItems instanceof Traversable) -- cgit v1.2.3