From 0c32dad370fb228c36baddd6d7af295aff28f7e8 Mon Sep 17 00:00:00 2001 From: mikl <> Date: Wed, 15 Oct 2008 18:07:16 +0000 Subject: Fixed #922 --- framework/Web/TUrlMapping.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework') diff --git a/framework/Web/TUrlMapping.php b/framework/Web/TUrlMapping.php index d3757aaa..662f96dd 100644 --- a/framework/Web/TUrlMapping.php +++ b/framework/Web/TUrlMapping.php @@ -617,7 +617,7 @@ class TUrlMappingPattern extends TComponent foreach($getItems as $key=>$value) { if($encodeGetItems) - $value=urlencode($value); + $value=rawurlencode($value); if($this->_parameters->contains($key)) $replace['{'.$key.'}']=$value; else @@ -637,12 +637,12 @@ class TUrlMappingPattern extends TComponent { if(is_array($value)) { - $name=urlencode($name.'[]'); + $name=rawurlencode($name.'[]'); foreach($value as $v) - $url2.=$amp.$name.'='.urlencode($v); + $url2.=$amp.$name.'='.rawurlencode($v); } else - $url2.=$amp.urlencode($name).'='.urlencode($value); + $url2.=$amp.rawurlencode($name).'='.rawurlencode($value); } } else -- cgit v1.2.3