bug #3438420 [core] Magic quotes removed in PHP 5.4
This commit is contained in:
@@ -4,6 +4,7 @@ phpMyAdmin - ChangeLog
|
|||||||
3.4.9.0 (not yet released)
|
3.4.9.0 (not yet released)
|
||||||
- bug #3442028 [edit] Inline editing enum fields with null shows no dropdown
|
- bug #3442028 [edit] Inline editing enum fields with null shows no dropdown
|
||||||
- bug #3442004 [interface] DB suggestion not correct for user with underscore
|
- bug #3442004 [interface] DB suggestion not correct for user with underscore
|
||||||
|
- bug #3438420 [core] Magic quotes removed in PHP 5.4
|
||||||
|
|
||||||
3.4.8.0 (not yet released)
|
3.4.8.0 (not yet released)
|
||||||
- bug #3425230 [interface] enum data split at space char (more space to edit)
|
- bug #3425230 [interface] enum data split at space char (more space to edit)
|
||||||
|
@@ -68,12 +68,16 @@ if (version_compare(phpversion(), '5.3', 'lt')) {
|
|||||||
@ini_set('zend.ze1_compatibility_mode', false);
|
@ini_set('zend.ze1_compatibility_mode', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This setting was removed in PHP 5.4. But at this point PMA_PHP_INT_VERSION
|
||||||
|
* is not yet defined so we use another way to find out the PHP version.
|
||||||
|
*/
|
||||||
|
if (version_compare(phpversion(), '5.4', 'lt')) {
|
||||||
/**
|
/**
|
||||||
* Avoid problems with magic_quotes_runtime
|
* Avoid problems with magic_quotes_runtime
|
||||||
* (in the future, this setting will be removed but it's not yet
|
|
||||||
* known in which PHP version)
|
|
||||||
*/
|
*/
|
||||||
@ini_set('magic_quotes_runtime', false);
|
@ini_set('magic_quotes_runtime', false);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* for verification in all procedural scripts under libraries
|
* for verification in all procedural scripts under libraries
|
||||||
@@ -253,13 +257,19 @@ if (isset($_POST['usesubform'])) {
|
|||||||
}
|
}
|
||||||
// end check if a subform is submitted
|
// end check if a subform is submitted
|
||||||
|
|
||||||
// remove quotes added by php
|
/**
|
||||||
|
* This setting was removed in PHP 5.4. But at this point PMA_PHP_INT_VERSION
|
||||||
|
* is not yet defined so we use another way to find out the PHP version.
|
||||||
|
*/
|
||||||
|
if (version_compare(phpversion(), '5.4', 'lt')) {
|
||||||
|
// remove quotes added by PHP
|
||||||
if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
|
if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
|
||||||
PMA_arrayWalkRecursive($_GET, 'stripslashes', true);
|
PMA_arrayWalkRecursive($_GET, 'stripslashes', true);
|
||||||
PMA_arrayWalkRecursive($_POST, 'stripslashes', true);
|
PMA_arrayWalkRecursive($_POST, 'stripslashes', true);
|
||||||
PMA_arrayWalkRecursive($_COOKIE, 'stripslashes', true);
|
PMA_arrayWalkRecursive($_COOKIE, 'stripslashes', true);
|
||||||
PMA_arrayWalkRecursive($_REQUEST, 'stripslashes', true);
|
PMA_arrayWalkRecursive($_REQUEST, 'stripslashes', true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* include deprecated grab_globals only if required
|
* include deprecated grab_globals only if required
|
||||||
|
Reference in New Issue
Block a user