From 2cc31e7848b4b6a0f084636a6dd6b46117aa61e5 Mon Sep 17 00:00:00 2001 From: mikelittle Date: Thu, 24 Jul 2003 00:41:40 +0000 Subject: [PATCH] Added stripslashes to get_userdata() Reported on the support forums http://wordpress.org/support/3/376 git-svn-id: http://svn.automattic.com/wordpress/trunk@271 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- b2-include/b2functions.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/b2-include/b2functions.php b/b2-include/b2functions.php index 936ab786b..e32e20126 100644 --- a/b2-include/b2functions.php +++ b/b2-include/b2functions.php @@ -415,7 +415,12 @@ function get_userdata($userid) { global $wpdb, $querycount, $cache_userdata, $use_cache, $tableusers; if ((empty($cache_userdata[$userid])) || (!$use_cache)) { $user = $wpdb->get_row("SELECT * FROM $tableusers WHERE ID = $userid"); - ++$querycount; + $user->user_nickname = stripslashes($user->user_nickname); + $user->user_firstname = stripslashes($user->user_firstname); + $user->user_lastname = stripslashes($user->user_lastname); + $user->user_firstname = stripslashes($user->user_firstname); + $user->user_lastname = stripslashes($user->user_lastname); + ++$querycount; $cache_userdata[$userid] = $user; } else { $user = $cache_userdata[$userid];