diff options
author | xue <> | 2006-11-18 13:21:32 +0000 |
---|---|---|
committer | xue <> | 2006-11-18 13:21:32 +0000 |
commit | e2b765792fd664cc45c2cc9f686f2b4988b80148 (patch) | |
tree | 151144cc65286a01cbcf521641c74f12fe6bdbdc /framework/Web/THttpRequest.php | |
parent | c42521aa777c2fe70624bbfa258fabefc3c98452 (diff) |
fixed #454. reverted back constructUrl so that ampersand is not encoded by default.
Diffstat (limited to 'framework/Web/THttpRequest.php')
-rw-r--r-- | framework/Web/THttpRequest.php | 4 |
1 files changed, 2 insertions, 2 deletions
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?'&':'&';
|