bug #1905711 [compatibility] Functions deprecated in PHP 5.3

This commit is contained in:
Marc Delisle
2008-03-03 13:51:34 +00:00
parent 73764ba49b
commit e80a9cda23
2 changed files with 4 additions and 1 deletions

View File

@@ -231,7 +231,8 @@ if (isset($_POST['usesubform'])) {
// end check if a subform is submitted
// remove quotes added by php
if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
// (@ before get_magic_quotes_gpc() because it's deprecated in PHP 5.3)
if (function_exists('get_magic_quotes_gpc') && @get_magic_quotes_gpc()) {
PMA_arrayWalkRecursive($_GET, 'stripslashes', true);
PMA_arrayWalkRecursive($_POST, 'stripslashes', true);
PMA_arrayWalkRecursive($_COOKIE, 'stripslashes', true);