summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorhaertl.mike <>2008-12-02 15:19:48 +0000
committerhaertl.mike <>2008-12-02 15:19:48 +0000
commitdd174b089f6e5bc32fd572e397fd726eca744980 (patch)
treef815bfb518a4d068589e7a44e5229a24333ded90 /framework
parent7083c8647c9ed7d1f10b6ca4797c65f58b63f126 (diff)
Fixed: TUrlMapping encoded extra parameters twice
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/TUrlMapping.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/framework/Web/TUrlMapping.php b/framework/Web/TUrlMapping.php
index 338c00f8..83dd99b6 100644
--- a/framework/Web/TUrlMapping.php
+++ b/framework/Web/TUrlMapping.php
@@ -301,7 +301,7 @@ class TUrlMapping extends TUrlManager
$getItems=array();
$key=$serviceID.':'.$serviceParam;
$wildCardKey = ($pos=strrpos($serviceParam,'.'))!==false ?
- $serviceID.':'.substr($serviceParam,0,$pos).'.*' : $serviceID.':*';
+ $serviceID.':'.substr($serviceParam,0,$pos).'.*' : $serviceID.':*';
if(isset($this->_constructRules[$key]))
{
foreach($this->_constructRules[$key] as $rule)
@@ -647,10 +647,8 @@ class TUrlMappingPattern extends TComponent
// for the GET variables matching the pattern, put them in the URL path
foreach($getItems as $key=>$value)
{
- if($encodeGetItems)
- $value=rawurlencode($value);
if($this->_parameters->contains($key) || $key==='*' && $this->getIsWildCardPattern())
- $replace['{'.$key.'}']=$value;
+ $replace['{'.$key.'}']=$encodeGetItems ? rawurlencode($value) : $value;
else
$extra[$key]=$value;
}