Ticket #7728: sanitize_user.patch
File sanitize_user.patch, 529 bytes (added by , 17 years ago) |
---|
-
functions-formatting.php
291 291 // If strict, reduce to ASCII for max portability. 292 292 if ( $strict ) 293 293 $username = preg_replace('|[^a-z0-9 _.\-@]|i', '', $username); 294 295 // Consolidate contiguous whitespace 296 $username = preg_replace('|\s+|', ' ', $username); 294 297 295 298 return apply_filters('sanitize_user', $username, $raw_username, $strict); 296 299 }