MDL-75946 lib_horde: Fixed deprecated FILTER_SANITIZE_STRING

This commit is contained in:
David Woloszyn
2023-02-03 12:58:32 +11:00
parent 226bfb0348
commit 562d62474e
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -335,8 +335,8 @@ class Horde_Variables implements ArrayAccess, Countable, IteratorAggregate
}
return is_array($val)
? filter_var_array($val, FILTER_SANITIZE_STRING)
: filter_var($val, FILTER_SANITIZE_STRING);
? filter_var_array($val, FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_FLAG_NO_ENCODE_QUOTES)
: filter_var($val, FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_FLAG_NO_ENCODE_QUOTES);
}
/* Protected methods. */
+4
View File
@@ -13,6 +13,10 @@ Description of import of Horde libraries
passing in your path to Horde (the directory you've cloned the repository):
/tmp/copyhorde.sh ~/git/base/directory/from/step/2
Notes:
* 2023-01-20 Applied patch https://github.com/horde/Util/pull/10
====
#!/bin/sh