summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwei <>2007-03-30 11:32:09 +0000
committerwei <>2007-03-30 11:32:09 +0000
commit63f771ad05eaf96c11053cb6e009f7b8633eb4fe (patch)
treed82f6aeb90b89e3945544ef89f1872566b09c83b
parenta29a225724121eddbb32ddc9aad484e83361cc18 (diff)
Fixed #500, urldecode the url for TActiveHyperLink::NavigateUrl
-rw-r--r--framework/Web/UI/ActiveControls/TActiveHyperLink.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Web/UI/ActiveControls/TActiveHyperLink.php b/framework/Web/UI/ActiveControls/TActiveHyperLink.php
index e92c1b19..fad9e140 100644
--- a/framework/Web/UI/ActiveControls/TActiveHyperLink.php
+++ b/framework/Web/UI/ActiveControls/TActiveHyperLink.php
@@ -82,7 +82,8 @@ class TActiveHyperLink extends THyperLink implements IActiveControl
parent::setNavigateUrl($value);
if($this->getActiveControl()->canUpdateClientSide())
{
- $url = str_replace('&amp;', '&', $value); //for placing url, we need to strip out the &amp;
+ //replace &amp; with & and urldecode the url (setting the href using javascript is literal)
+ $url = urldecode(str_replace('&amp;', '&', $value));
$this->getPage()->getCallbackClient()->setAttribute($this, 'href', $url);
}
}