From 7519a8bac81af0105a46eaa3dddb97b16bed0872 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 1 Oct 2019 15:02:49 +0200 Subject: add patch for PHP 7.2 from https://github.com/horde/Util/pull/2 --- 2.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 2.patch (limited to '2.patch') diff --git a/2.patch b/2.patch new file mode 100644 index 0000000..fc154f1 --- /dev/null +++ b/2.patch @@ -0,0 +1,22 @@ +From 70e66e65fd0739f7176793b013101b0120e19ee8 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Tue, 1 Oct 2019 14:56:42 +0200 +Subject: [PATCH] Fix Function get_magic_quotes_gpc() is deprecated (7.4) + +--- + lib/Horde/Util.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/Horde/Util.php b/lib/Horde/Util.php +index 4d16bb8..d6067a1 100644 +--- a/lib/Horde/Util.php ++++ b/lib/Horde/Util.php +@@ -114,7 +114,7 @@ public static function pformInput($append_session = 0) + public static function dispelMagicQuotes($var) + { + if (is_null(self::$_magicquotes)) { +- self::$_magicquotes = get_magic_quotes_gpc(); ++ self::$_magicquotes = function_exists('get_magic_quotes_gpc') && @get_magic_quotes_gpc(); + } + + if (self::$_magicquotes) { -- cgit