Make WordPress Core

Changeset 11799


Ignore:
Timestamp:
08/11/2009 05:29:36 AM (15 years ago)
Author:
ryan
Message:

Enforce activation key to be a string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

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