summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
authorxue <>2007-07-17 17:43:16 +0000
committerxue <>2007-07-17 17:43:16 +0000
commita5ba85214c1d062f3726d3e2fa295539c6ccc33c (patch)
tree37879e164910848b8e3e9950aea6ee61f271b1e5 /framework/Web/UI
parent879efac4a5198cb6ab71bb8a3d50771e6d687970 (diff)
Fixed #662.
Diffstat (limited to 'framework/Web/UI')
-rw-r--r--framework/Web/UI/TForm.php3
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('&','&amp;',str_replace('&amp;','&',$uri)));
if(($enctype=$this->getEnctype())!=='')
$writer->addAttribute('enctype',$enctype);