Add a prophylactic sanitize_user()
git-svn-id: http://svn.automattic.com/wordpress/trunk@5683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
66e6a55c7e
commit
21dff0640c
|
@ -304,6 +304,8 @@ if ( !function_exists('wp_login') ) :
|
||||||
function wp_login($username, $password, $already_md5 = false) {
|
function wp_login($username, $password, $already_md5 = false) {
|
||||||
global $wpdb, $error;
|
global $wpdb, $error;
|
||||||
|
|
||||||
|
$username = sanitize_user($username);
|
||||||
|
|
||||||
if ( '' == $username )
|
if ( '' == $username )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue