Changeset 33840 for trunk/src/wp-includes/option.php
- Timestamp:
- 09/01/2015 03:56:44 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/option.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r33794 r33840 901 901 902 902 if ( isset( $_COOKIE['wp-settings-' . $user_id] ) ) { 903 $cookie = preg_replace( '/[^A-Za-z0-9=&_ ]/', '', $_COOKIE['wp-settings-' . $user_id] );903 $cookie = preg_replace( '/[^A-Za-z0-9=&_-]/', '', $_COOKIE['wp-settings-' . $user_id] ); 904 904 905 905 if ( strpos( $cookie, '=' ) ) { // '=' cannot be 1st char … … 941 941 $settings = ''; 942 942 foreach ( $user_settings as $name => $value ) { 943 $_name = preg_replace( '/[^A-Za-z0-9_ ]+/', '', $name );944 $_value = preg_replace( '/[^A-Za-z0-9_ ]+/', '', $value );943 $_name = preg_replace( '/[^A-Za-z0-9_-]+/', '', $name ); 944 $_value = preg_replace( '/[^A-Za-z0-9_-]+/', '', $value ); 945 945 946 946 if ( ! empty( $_name ) ) {
Note: See TracChangeset
for help on using the changeset viewer.