Menu

#355 Magic Quotes REMOVED from PHP 5.4 and deprecated in PHP 5.3

2.2.1
open-postponed
Legacy (179)
5
2012-05-17
2012-03-29
No

Magic Quotes was REMOVED from the last PHP stable (v5.4.0) and is deprecated in PHP 5.3.0.

/admin.php is showing a red alert message about the "Magic Quotes : Off",
but is not possible to set this "On" since was removed from the last PHP stable :-)

Please, look:
http://i.imgur.com/8uXua.png

REFERENCES ABOUT MAGIC QUOTES IN XC FILES:

\\xoopscube\Package_Legacy\trunk\xoops_trust_path\libs\htmlpurifier\library\HTMLPurifier\Config.php 28,00 KB
Line 615 $mq = $mq_fix && function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc();

\\xoopscube\Package_Legacy\trunk\html\modules\legacy\preload\AdminSystemCheckPlusPreload.class.php 13,00 KB
Line 140 $phpsetting_message[] = _AD_LEGACY_PHPSETTING_MQ." : ".(ini_get('magic_quotes_gpc')? "<span style=color:green>" ._AD_LEGACY_PHPSETTING_ON."</span>" : "<span style=color:red>" ._AD_LEGACY_PHPSETTING_OFF. "</span>");

\\xoopscube\Package_Legacy\trunk\html\modules\legacy\lib\nusoap\nusoap.php 291,00 KB
Line 2715 //set_magic_quotes_runtime(0);

\\xoopscube\Package_Legacy\trunk\html\modules\legacy\kernel\Legacy_Controller.class.php 44,00 KB
Line 136 if(get_magic_quotes_runtime()) {
Line 137 set_magic_quotes_runtime(0); // ^^;

\\xoopscube\Package_Legacy\trunk\html\install\class\textsanitizer.php 9,00 KB
Line 32 if(get_magic_quotes_runtime()) set_magic_quotes_runtime(0);
Line 77 if (!get_magic_quotes_gpc()) {
Line 84 * if magic_quotes_gpc is on, stirip back slashes
Line 88 if (get_magic_quotes_gpc()) {
Line 227 //if magic_quotes_gpc is on, do stipslashes
Line 244 if (get_magic_quotes_runtime()) {

\\xoopscube\Package_Legacy\trunk\html\core\XCube_HttpContext.class.php 6,00 KB
Line 197 if (!get_magic_quotes_gpc()) {

\\xoopscube\Package_Legacy\trunk\html\core\XCube_ActionForm.class.php 18,00 KB
Line 310 if (get_magic_quotes_gpc()) {

\\xoopscube\Package_Legacy\trunk\html\class\mail\phpmailer\class.phpmailer.php 73,00 KB
Line 1464 if (function_exists('get_magic_quotes')) {
Line 1465 function get_magic_quotes() {
Line 1470 $magic_quotes = get_magic_quotes_runtime();
Line 1471 set_magic_quotes_runtime(0);
Line 1475 if (PHP_VERSION < 6) { set_magic_quotes_runtime($magic_quotes); }
Line 1528 // Can't use addslashes as we don't know what value has magic_quotes_sybase

\\xoopscube\Package_Legacy\trunk\html\class\module.textsanitizer.php 15,00 KB
Line 219 * Add slashes to the text if magic_quotes_gpc is turned off.
Line 226 if (!get_magic_quotes_gpc()) {
Line 232 * if magic_quotes_gpc is on, stirip back slashes
Line 240 if (get_magic_quotes_gpc()) {
Line 459 //if magic_quotes_gpc is on, do stipslashes
Line 477 if (get_magic_quotes_runtime()) {

\\xoopscube\Package_Legacy\trunk\extras\installer-ftp\lib\HTTP\Request.php 49,00 KB
Line 697 $magicQuotes = ini_get('magic_quotes_runtime');
Line 698 ini_set('magic_quotes_runtime', false);
Line 755 ini_set('magic_quotes_runtime', $magicQuotes);

\\xoopscube\Package_Legacy\trunk\extras\extra_modules\xoops_trust_path\libs\altsys\include\gtickets.php 10,00 KB
Line 204 if( get_magic_quotes_gpc() ) {
Line 212 if( get_magic_quotes_gpc() ) {
Line 229 if( get_magic_quotes_gpc() ) {
Line 237 if( get_magic_quotes_gpc() ) {

\\xoopscube\Package_Legacy\trunk\extras\extra_modules\xoops_trust_path\libs\altsys\class\d3utilities.php 9,00 KB
Line 46 if( get_magic_quotes_gpc() ) $value = stripslashes( $value ) ;
Line 52 if( get_magic_quotes_gpc() ) $value = stripslashes( $value ) ;

\\xoopscube\Package_Legacy\trunk\extras\extra_languages\tw_utf-8\html\class\mail\phpmailer\class.phpmailer.php 46,00 KB
Line 1090 $magic_quotes = get_magic_quotes_runtime();
Line 1091 set_magic_quotes_runtime(0);
Line 1095 set_magic_quotes_runtime($magic_quotes);
Line 1143 // Can't use addslashes as we don't know what value has magic_quotes_sybase.

\\xoopscube\Package_Legacy\trunk\extras\extra_languages\tw_big5\html\class\mail\phpmailer\class.phpmailer.php 46,00 KB
Line 1090 $magic_quotes = get_magic_quotes_runtime();
Line 1091 set_magic_quotes_runtime(0);
Line 1095 set_magic_quotes_runtime($magic_quotes);
Line 1143 // Can't use addslashes as we don't know what value has magic_quotes_sybase.

Discussion

  • Mikhail Miguel

    Mikhail Miguel - 2012-03-29

    Magic Quotes : Off = Red Alert

     
  • HIKAWA Kilica

    HIKAWA Kilica - 2012-04-11
    • labels: --> Legacy
    • milestone: --> 2.2.1
    • assigned_to: nobody --> kilica
    • status: open --> open-accepted
     
  • HIKAWA Kilica

    HIKAWA Kilica - 2012-05-17

    As some users use XCL under safe_mode now, postpone this update until XCL 2.2.2 or later.

     
  • HIKAWA Kilica

    HIKAWA Kilica - 2012-05-17
    • status: open-accepted --> open-postponed
     

Log in to post a comment.