mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
do not worry about escaping an object
This commit is contained in:
1 parent
dd6616bbb2
commit
92fd05cb5d
1 file changed
+5
@@ -129,6 +129,11 @@ class PFASmarty {
|
||||
* @return mixed $data
|
||||
* */
|
||||
public function sanitise($data) {
|
||||
|
||||
if(is_object($data)) {
|
||||
return $data; // can't handle
|
||||
}
|
||||
|
||||
if (!is_array($data)) {
|
||||
return htmlentities($data, ENT_QUOTES, 'UTF-8', false);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user