mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01: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 Built from https://develop.svn.wordpress.org/trunk@35639 git-svn-id: http://core.svn.wordpress.org/trunk@35603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
40b303069a
commit
45658705f3
@ -603,6 +603,9 @@ function wp_magic_quotes() {
|
|||||||
$_COOKIE = stripslashes_deep( $_COOKIE );
|
$_COOKIE = stripslashes_deep( $_COOKIE );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Turn off sybase quoting after stripslashes has run
|
||||||
|
@ini_set( 'magic_quotes_sybase', 0 );
|
||||||
|
|
||||||
// Escape with wpdb.
|
// Escape with wpdb.
|
||||||
$_GET = add_magic_quotes( $_GET );
|
$_GET = add_magic_quotes( $_GET );
|
||||||
$_POST = add_magic_quotes( $_POST );
|
$_POST = add_magic_quotes( $_POST );
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-beta4-35638';
|
$wp_version = '4.4-beta4-35639';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
@ -46,7 +46,6 @@ wp_check_php_mysql_versions();
|
|||||||
|
|
||||||
// Disable magic quotes at runtime. Magic quotes are added using wpdb later in wp-settings.php.
|
// Disable magic quotes at runtime. Magic quotes are added using wpdb later in wp-settings.php.
|
||||||
@ini_set( 'magic_quotes_runtime', 0 );
|
@ini_set( 'magic_quotes_runtime', 0 );
|
||||||
@ini_set( 'magic_quotes_sybase', 0 );
|
|
||||||
|
|
||||||
// WordPress calculates offsets from UTC.
|
// WordPress calculates offsets from UTC.
|
||||||
date_default_timezone_set( 'UTC' );
|
date_default_timezone_set( 'UTC' );
|
||||||
|
Loading…
Reference in New Issue
Block a user