Ignore:
Timestamp:
Nov 14, 2020 6:44:06 PM (4 years ago)
Author:
anonymous
Message:

Avoid use of get_magic_quotes_gpc() after PHP 5.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Utilities.inc.php

    r735 r738  
    10601060
    10611061    if (!isset($magic_quotes_gpc)) {
    1062         $magic_quotes_gpc = get_magic_quotes_gpc();
     1062        $magic_quotes_gpc = version_compare(PHP_VERSION, '5.4.0', '<') ? get_magic_quotes_gpc() : false;
    10631063    }
    10641064
Note: See TracChangeset for help on using the changeset viewer.