mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 19:30:12 +01:00
parent
6eaa70d991
commit
2128ac8b8a
@ -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();
|
||||
@ -61,5 +61,3 @@ class ControllerPolicyArchiving extends Controller {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -26,7 +26,7 @@ class ControllerPolicyRemovearchiving extends Controller {
|
||||
$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) {
|
||||
|
||||
@ -72,5 +72,3 @@ class ControllerPolicyRemovearchiving extends Controller {
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -26,7 +26,7 @@ class ControllerPolicyRemoveretention extends Controller {
|
||||
$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) {
|
||||
|
||||
@ -72,5 +72,3 @@ class ControllerPolicyRemoveretention extends Controller {
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -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();
|
||||
@ -66,5 +66,3 @@ class ControllerPolicyRetention extends Controller {
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user