Skip to content

Commit

Permalink
Fix deprecation warning about magic quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
EHLOVader committed Jul 26, 2023
1 parent 2fed8c1 commit 1a33404
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/global.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ function mb_convert_encoding( $a , $b , $c )
| http://support.pimpmylog.com/discussions/problems/56-regex-tester-match-is-not-a-valid-associative-array
|
*/
if ( get_magic_quotes_gpc() )
if ( version_compare(PHP_VERSION, '7.4', '<') &&
get_magic_quotes_gpc() )
{
$process = array( &$_GET , &$_POST , &$_COOKIE , &$_REQUEST );
while ( list( $key , $val ) = each( $process ) )
Expand Down

0 comments on commit 1a33404

Please sign in to comment.