1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-11 11:23:52 +02:00

MDL-75946 lib_horde: Fixed deprecated FILTER_SANITIZE_STRING

This commit is contained in:
David Woloszyn 2023-02-03 12:43:02 +11:00
parent 226bfb0348
commit 562d62474e
2 changed files with 6 additions and 2 deletions
lib/horde

@ -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. */

@ -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