From e2b765792fd664cc45c2cc9f686f2b4988b80148 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 18 Nov 2006 13:21:32 +0000 Subject: fixed #454. reverted back constructUrl so that ampersand is not encoded by default. --- framework/Web/Services/TPageService.php | 4 ++-- framework/Web/THttpRequest.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Web') diff --git a/framework/Web/Services/TPageService.php b/framework/Web/Services/TPageService.php index 5d9e74fb..98e53156 100644 --- a/framework/Web/Services/TPageService.php +++ b/framework/Web/Services/TPageService.php @@ -462,11 +462,11 @@ class TPageService extends TService * Constructs a URL with specified page path and GET parameters. * @param string page path * @param array list of GET parameters, null if no GET parameters required - * @param boolean whether to encode the ampersand in URL, defaults to true. + * @param boolean whether to encode the ampersand in URL, defaults to false. * @param boolean whether to encode the GET parameters (their names and values), defaults to true. * @return string URL for the page and GET parameters */ - public function constructUrl($pagePath,$getParams=null,$encodeAmpersand=true,$encodeGetItems=true) + public function constructUrl($pagePath,$getParams=null,$encodeAmpersand=false,$encodeGetItems=true) { return $this->getRequest()->constructUrl($this->getID(),$pagePath,$getParams,$encodeAmpersand,$encodeGetItems); } diff --git a/framework/Web/THttpRequest.php b/framework/Web/THttpRequest.php index 44efb14b..b9d8d1ea 100644 --- a/framework/Web/THttpRequest.php +++ b/framework/Web/THttpRequest.php @@ -483,11 +483,11 @@ class THttpRequest extends TApplicationComponent implements IteratorAggregate,Ar * @param string service parameter * @param array GET parameters, null if not needed * @param boolean whether to encode the ampersand in URL, defaults to true. - * @param boolean whether to encode the GET parameters (their names and values), defaults to true. + * @param boolean whether to encode the GET parameters (their names and values), defaults to false. * @return string URL * @see parseUrl */ - public function constructUrl($serviceID,$serviceParam,$getItems=null,$encodeAmpersand=true,$encodeGetItems=true) + public function constructUrl($serviceID,$serviceParam,$getItems=null,$encodeAmpersand=false,$encodeGetItems=true) { $url=$serviceID.'='.$serviceParam; $amp=$encodeAmpersand?'&':'&'; -- cgit v1.2.3