Make WordPress Core

Changeset 11797


Ignore:
Timestamp:
08/11/2009 04:53:10 AM (15 years ago)
Author:
ryan
Message:

Reject activation keys that are arrays.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r11514 r11797  
    188188    $key = preg_replace('/[^a-z0-9]/i', '', $key);
    189189
    190     if ( empty( $key ) )
     190    if ( empty( $key ) || is_array( $key ) )
    191191        return new WP_Error('invalid_key', __('Invalid key'));
    192192
Note: See TracChangeset for help on using the changeset viewer.