WordPress.org

Make WordPress Core

Changeset 11800


Ignore:
Timestamp:
08/11/09 05:31:28 (6 years ago)
Author:
ryan
Message:

Enforce activation key to be a string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/wp-login.php

    r11798 r11800  
    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.