mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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 git-svn-id: https://develop.svn.wordpress.org/trunk@35639 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -603,6 +603,9 @@ function wp_magic_quotes() {
|
||||
$_COOKIE = stripslashes_deep( $_COOKIE );
|
||||
}
|
||||
|
||||
// Turn off sybase quoting after stripslashes has run
|
||||
@ini_set( 'magic_quotes_sybase', 0 );
|
||||
|
||||
// Escape with wpdb.
|
||||
$_GET = add_magic_quotes( $_GET );
|
||||
$_POST = add_magic_quotes( $_POST );
|
||||
|
||||
Reference in New Issue
Block a user