Changeset 3795

Show
Ignore:
Timestamp:
05/26/06 17:27:51 (3 years ago)
Author:
ryan
Message:

sanitize_user regex fix from grigs. fixes #2729

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/functions-formatting.php

    r3763 r3795  
    279279    // If strict, reduce to ASCII for max portability. 
    280280    if ( $strict ) 
    281         $username = preg_replace('|[^a-z0-9 _.-@]|i', '', $username); 
     281        $username = preg_replace('|[^a-z0-9 _.\-@]|i', '', $username); 
    282282 
    283283    return apply_filters('sanitize_user', $username, $raw_username, $strict);