mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Fix for $frm->open() when using GET and query strings.
This commit is contained in:
@@ -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<form {$class} action='{$target}' id='".$this->name2id($name)."' method = '{$method}'{$autoComplete}>\n";
|
||||
|
||||
if($method == 'get' && strpos($target,'='))
|
||||
{
|
||||
list($url,$qry) = explode("?",$target);
|
||||
$text = "\n<form {$class} action='{$url}' id='".$this->name2id($name)."' method = '{$method}'{$autoComplete}>\n";
|
||||
|
||||
parse_str($qry,$m);
|
||||
foreach($m as $k=>$v)
|
||||
@@ -138,7 +136,11 @@ class e_form
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$target = str_replace("&", "&", $target);
|
||||
$text = "\n<form {$class} action='{$target}' id='".$this->name2id($name)."' method = '{$method}'{$autoComplete}>\n";
|
||||
}
|
||||
return $text;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user