Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Enforce activation key to be a string.

git-svn-id: http://svn.automattic.com/wordpress/branches/2.8@11800 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
commit a5475271258930d937f7b7f2aba68fbc37862ae5 1 parent 260fe48
ryan authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  wp-login.php
View
2  wp-login.php
@@ -187,7 +187,7 @@ function reset_password($key) {
$key = preg_replace('/[^a-z0-9]/i', '', $key);
- if ( empty( $key ) || is_array( $key ) )
+ if ( empty( $key ) || !is_string( $key ) )
return new WP_Error('invalid_key', __('Invalid key'));
$user = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->users WHERE user_activation_key = %s", $key));
Please sign in to comment.
Something went wrong with that request. Please try again.