Skip to content

Commit

Permalink
Fix Function get_magic_quotes_gpc() is deprecated (7.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet authored and mrubinsk committed Nov 2, 2019
1 parent 3ebfcfb commit c836ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Horde/Util.php
Expand Up @@ -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) {
Expand Down

0 comments on commit c836ddf

Please sign in to comment.