From 703b3edacfbb12b57510d1ca441b6bbbb2fc16ab Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 5 Dec 2005 13:57:49 +0000 Subject: --- framework/Web/UI/WebControls/TImageButton.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/Web/UI/WebControls/TImageButton.php') 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; } -- cgit v1.2.3