diff options
author | wei <> | 2007-03-30 11:32:09 +0000 |
---|---|---|
committer | wei <> | 2007-03-30 11:32:09 +0000 |
commit | 63f771ad05eaf96c11053cb6e009f7b8633eb4fe (patch) | |
tree | d82f6aeb90b89e3945544ef89f1872566b09c83b | |
parent | a29a225724121eddbb32ddc9aad484e83361cc18 (diff) |
Fixed #500, urldecode the url for TActiveHyperLink::NavigateUrl
-rw-r--r-- | framework/Web/UI/ActiveControls/TActiveHyperLink.php | 3 |
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('&', '&', $value); //for placing url, we need to strip out the & + //replace & with & and urldecode the url (setting the href using javascript is literal) + $url = urldecode(str_replace('&', '&', $value)); $this->getPage()->getCallbackClient()->setAttribute($this, 'href', $url); } } |