mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-09 15:25:09 +02:00
Some more quoting (and unquoting) of quotes in variable used eg. as
button names: eg. "delete[$row_cont[path]]" with path containing " or ' - they need to get quoted for correct html markup - etemplate_request::set_to_process() need to use unquoted version, as this is how it get returned in $_POST
This commit is contained in:
@ -198,6 +198,9 @@ class etemplate_request
|
||||
//echo '<p>'.__METHOD__."($form_name,$type,".array2string($data).")</p>\n";
|
||||
$data['type'] = $type;
|
||||
|
||||
// unquote single and double quotes, as this is how they get returned in $_POST
|
||||
$form_name = str_replace(array('\\\'','"'),array('\'','"'),$form_name);
|
||||
|
||||
$this->data['to_process'][$form_name] = $data;
|
||||
$this->data_modified = true;
|
||||
}
|
||||
@ -215,6 +218,9 @@ class etemplate_request
|
||||
//echo '<p>'.__METHOD__."($form_name,$attribute,$value,$add_to_array)</p>\n";
|
||||
if (!$form_name) return;
|
||||
|
||||
// unquote single and double quotes, as this is how they get returned in $_POST
|
||||
$form_name = str_replace(array('\\\'','"'),array('\'','"'),$form_name);
|
||||
|
||||
if ($add_to_array)
|
||||
{
|
||||
$this->data['to_process'][$form_name][$attribute][] = $value;
|
||||
|
Reference in New Issue
Block a user