Escapage
git-svn-id: http://svn.automattic.com/wordpress/branches/2.2@5440 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
65ffc78548
commit
9532679648
|
@ -121,6 +121,8 @@ function get_userdatabylogin($user_login) {
|
|||
if ( $userdata )
|
||||
return $userdata;
|
||||
|
||||
$user_login = $wpdb->escape($user_login);
|
||||
|
||||
if ( !$user = $wpdb->get_row("SELECT * FROM $wpdb->users WHERE user_login = '$user_login'") )
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue