From a5ba85214c1d062f3726d3e2fa295539c6ccc33c Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 17 Jul 2007 17:43:16 +0000 Subject: Fixed #662. --- framework/Web/UI/TForm.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework/Web/UI/TForm.php') diff --git a/framework/Web/UI/TForm.php b/framework/Web/UI/TForm.php index 2cfa5547..324156fa 100644 --- a/framework/Web/UI/TForm.php +++ b/framework/Web/UI/TForm.php @@ -47,7 +47,8 @@ class TForm extends TControl { $writer->addAttribute('id',$this->getClientID()); $writer->addAttribute('method',$this->getMethod()); - $writer->addAttribute('action',$this->getRequest()->getRequestURI()); + $uri=$this->getRequest()->getRequestURI(); + $writer->addAttribute('action',str_replace('&','&',str_replace('&','&',$uri))); if(($enctype=$this->getEnctype())!=='') $writer->addAttribute('enctype',$enctype); -- cgit v1.2.3