summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TImageButton.php
diff options
context:
space:
mode:
authorxue <>2005-12-05 13:57:49 +0000
committerxue <>2005-12-05 13:57:49 +0000
commit703b3edacfbb12b57510d1ca441b6bbbb2fc16ab (patch)
tree9cdffc4d80faef0646fab2f5a404c9a20a3d91d2 /framework/Web/UI/WebControls/TImageButton.php
parentf2cb7a3cf82f4788e4e96bd42fa617d6ea8e0fb0 (diff)
Diffstat (limited to 'framework/Web/UI/WebControls/TImageButton.php')
-rw-r--r--framework/Web/UI/WebControls/TImageButton.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TImageButton.php b/framework/Web/UI/WebControls/TImageButton.php
index 7043fa86..4c8ae251 100644
--- a/framework/Web/UI/WebControls/TImageButton.php
+++ b/framework/Web/UI/WebControls/TImageButton.php
@@ -90,7 +90,7 @@ class TImageButton extends TImage implements IPostBackDataHandler, IPostBackEven
*/
protected function getPostBackOptions()
{
- $options=new TPostBackOptions($this);
+ $options=new TPostBackOptions();
$options->ClientSubmit=false;
$page=$this->getPage();
if($this->getCausesValidation() && $page->getValidators($this->getValidationGroup())->getCount()>0)
@@ -99,7 +99,7 @@ class TImageButton extends TImage implements IPostBackDataHandler, IPostBackEven
$options->ValidationGroup=$this->getValidationGroup();
}
if($this->getPostBackUrl()!=='')
- $options->ActionUrl=$this->getPostBackUrl();
+ $options->ActionUrl=THttpUtility::quoteJavaScriptString($this->getPostBackUrl());
return $options;
}