Escapage
git-svn-id: http://svn.automattic.com/wordpress/trunk@5441 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f7de9ede8a
commit
70c17cc871
|
@ -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