WordPress.org

Make WordPress Core

Changeset 35639


Ignore:
Timestamp:
11/15/2015 10:59:51 PM (5 years ago)
Author:
johnbillion
Message:

On servers running PHP <= 5.4 which have magic_quotes_sybase enabled, the superglobals need to be magic-quoted before magic_quotes_sybase is subsequently disabled to avoid incorrect un-slashing. This must surely effect a miniscule number of servers, but so be it.

Fixes #19455
Props summerblue, kurtpayne, lucatume

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/load.php

    r35632 r35639  
    604604    }
    605605
     606    // Turn off sybase quoting after stripslashes has run
     607    @ini_set( 'magic_quotes_sybase', 0 );
     608
    606609    // Escape with wpdb.
    607610    $_GET    = add_magic_quotes( $_GET    );
  • trunk/src/wp-settings.php

    r35013 r35639  
    4747// Disable magic quotes at runtime. Magic quotes are added using wpdb later in wp-settings.php.
    4848@ini_set( 'magic_quotes_runtime', 0 );
    49 @ini_set( 'magic_quotes_sybase',  0 );
    5049
    5150// WordPress calculates offsets from UTC.
Note: See TracChangeset for help on using the changeset viewer.