From 4bc29714a19bf779e56292215f17b99fb2b4422a Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 12 Aug 2014 15:51:35 -0700 Subject: [PATCH] Fix for $frm->open() when using GET and query strings. --- e107_handlers/form_handler.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index ed3c68290..d48730647 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -109,8 +109,6 @@ class e_form parse_str($options,$options); - $target = str_replace("&", "&", $target); - if(vartrue($options['class'])) { $class = "class='".$options['class']."'"; @@ -125,11 +123,11 @@ class e_form $autoComplete = " autocomplete='".($options['autocomplete'] ? 'on' : 'off')."'"; } - $text = "\n
\n"; if($method == 'get' && strpos($target,'=')) { list($url,$qry) = explode("?",$target); + $text = "\n\n"; parse_str($qry,$m); foreach($m as $k=>$v) @@ -138,7 +136,11 @@ class e_form } } - + else + { + $target = str_replace("&", "&", $target); + $text = "\n\n"; + } return $text; }