CC-6055: Improved escaping
This commit is contained in:
parent
abc81a92b4
commit
b4c9a77e7c
10 changed files with 46 additions and 50 deletions
|
@ -980,7 +980,7 @@ class Application_Service_HistoryService
|
|||
$this->populateTemplateItem($values, $id, $instanceId);
|
||||
}
|
||||
else {
|
||||
$json["form"] = $form;
|
||||
$json["form"] = SecurityHelper::htmlescape_recursive($form);
|
||||
}
|
||||
|
||||
return $json;
|
||||
|
@ -1008,7 +1008,8 @@ class Application_Service_HistoryService
|
|||
$this->populateTemplateFile($values, $id);
|
||||
}
|
||||
else {
|
||||
$json["error"] = $msgs;
|
||||
$json["error"] = $form->getErrorMessages();
|
||||
$json["error"] = SecurityHelper::htmlescape_recursive($json["error"]);
|
||||
}
|
||||
|
||||
return $json;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue