diff options
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | framework/Web/UI/TForm.php | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -1,6 +1,7 @@ Version 3.1.1 To be released ============================ BUG: Ticket#656 - TDatePicker does not return correct value when in callback mode (Christophe) +BUG: Ticket#662 - Ensure TForm to properly encode the ampersand in action URL (Qiang) BUG: Ticket#670 - TDatePicker: Year Issue (Christophe) ENH: Ticket#667 - Added TFeedService.ContentType property (Qiang) ENH: Added THead requirement check (Qiang) 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);
|