Skip to content

Commit

Permalink
Reject activation keys that are arrays.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/branches/2.8@11798 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Aug 11, 2009
1 parent 9775268 commit 260fe48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-login.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function reset_password($key) {

$key = preg_replace('/[^a-z0-9]/i', '', $key);

if ( empty( $key ) )
if ( empty( $key ) || is_array( $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));
Expand Down

0 comments on commit 260fe48

Please sign in to comment.