Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2018-09-23 06:38:36 +00:00
parent 6eaa70d991
commit 2128ac8b8a
5 changed files with 15 additions and 13 deletions

View File

@ -41,7 +41,7 @@ class ControllerPolicyArchiving extends Controller {
} }
} }
$this->data['rules'] = $this->model_policy_archiving->get_rules($this->data['search']); $this->data['rules'] = htmlentities_on_array($this->model_policy_archiving->get_rules($this->data['search']));
$this->render(); $this->render();
@ -61,5 +61,3 @@ class ControllerPolicyArchiving extends Controller {
} }
} }
?>

View File

@ -26,7 +26,7 @@ class ControllerPolicyRemovearchiving extends Controller {
$this->data['confirmed'] = (int)@$this->request->get['confirmed']; $this->data['confirmed'] = (int)@$this->request->get['confirmed'];
$this->data['rule'] = $this->model_policy_archiving->get_rule($this->data['id']); $this->data['rule'] = htmlentities_on_array($this->model_policy_archiving->get_rule($this->data['id']));
if($this->validate() == true) { if($this->validate() == true) {
@ -72,5 +72,3 @@ class ControllerPolicyRemovearchiving extends Controller {
} }
?>

View File

@ -26,7 +26,7 @@ class ControllerPolicyRemoveretention extends Controller {
$this->data['confirmed'] = (int)@$this->request->get['confirmed']; $this->data['confirmed'] = (int)@$this->request->get['confirmed'];
$this->data['rule'] = $this->model_policy_retention->get_rule($this->data['id']); $this->data['rule'] = htmlentities_on_array($this->model_policy_retention->get_rule($this->data['id']));
if($this->validate() == true) { if($this->validate() == true) {
@ -72,5 +72,3 @@ class ControllerPolicyRemoveretention extends Controller {
} }
?>

View File

@ -42,7 +42,7 @@ class ControllerPolicyRetention extends Controller {
} }
$this->data['rules'] = $this->model_policy_retention->get_rules($this->data['search']); $this->data['rules'] = htmlentities_on_array($this->model_policy_retention->get_rules($this->data['search']));
$this->render(); $this->render();
@ -66,5 +66,3 @@ class ControllerPolicyRetention extends Controller {
} }
?>

View File

@ -556,4 +556,14 @@ function get_ldap_attribute_names($ldap_type = '') {
} }
?> function htmlentities_on_array($arr = []) {
while(list($k, $v) = each($arr)) {
if(is_array($v)) {
$arr[$k] = htmlentities_on_array($v);
} else {
$arr[$k] = htmlentities($v);
}
}
return $arr;
}