From 4004fd29630a4aa33a1e654e1a241be9d089ce5d Mon Sep 17 00:00:00 2001 From: David Woloszyn Date: Fri, 3 Feb 2023 12:43:02 +1100 Subject: [PATCH] MDL-75946 lib_horde: Fixed deprecated FILTER_SANITIZE_STRING --- lib/horde/framework/Horde/Variables.php | 4 ++-- lib/horde/readme_moodle.txt | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/horde/framework/Horde/Variables.php b/lib/horde/framework/Horde/Variables.php index cf0a8431595..ffb3782fd90 100644 --- a/lib/horde/framework/Horde/Variables.php +++ b/lib/horde/framework/Horde/Variables.php @@ -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. */ diff --git a/lib/horde/readme_moodle.txt b/lib/horde/readme_moodle.txt index df47b9f2377..27ca459aee9 100644 --- a/lib/horde/readme_moodle.txt +++ b/lib/horde/readme_moodle.txt @@ -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