diff options
author | xue <> | 2007-07-17 17:43:16 +0000 |
---|---|---|
committer | xue <> | 2007-07-17 17:43:16 +0000 |
commit | a5ba85214c1d062f3726d3e2fa295539c6ccc33c (patch) | |
tree | 37879e164910848b8e3e9950aea6ee61f271b1e5 /framework/Web/UI/TForm.php | |
parent | 879efac4a5198cb6ab71bb8a3d50771e6d687970 (diff) |
Fixed #662.
Diffstat (limited to 'framework/Web/UI/TForm.php')
-rw-r--r-- | framework/Web/UI/TForm.php | 3 |
1 files changed, 2 insertions, 1 deletions
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);
|