summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TImageButton.php
diff options
context:
space:
mode:
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;
}