http_input : fix bug with array
This commit is contained in:
parent
d8c24d9cc7
commit
14ea453731
1 changed files with 3 additions and 1 deletions
|
|
@ -80,7 +80,9 @@ class HttpInput
|
|||
throw new Exception(_("Type invalide")."[ $p_name ] = {$this->array[$p_name]}"
|
||||
, EXC_PARAM_TYPE);
|
||||
}
|
||||
$this->array[$p_name]=h($this->array[$p_name]);
|
||||
if (is_string($this->array )) {
|
||||
$this->array[$p_name]=h($this->array[$p_name]);
|
||||
}
|
||||
}else {
|
||||
throw new Exception(_("Unknown type"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue