From ca7112e8d33fe37c1c7e138bc3537e3db087bf4e Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 18 Feb 2008 20:16:02 +0000 Subject: [PATCH] Make user option name sanitization consistent. Props filosofo. fixes #5901 git-svn-id: https://develop.svn.wordpress.org/trunk@6902 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/user.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/user.php b/wp-includes/user.php index 6878023203..83d85fb3bd 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -82,6 +82,7 @@ function user_pass_ok($user_login,$user_pass) { function get_user_option( $option, $user = 0 ) { global $wpdb; + $option = preg_replace('|[^a-z0-9_]|i', '', $option); if ( empty($user) ) $user = wp_get_current_user(); else