Make WordPress Core


Ignore:
Timestamp:
11/15/2015 10:59:51 PM (9 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

File:
1 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    );
Note: See TracChangeset for help on using the changeset viewer.