Ticket #2221: addslashes to sanitize_user.diff
File addslashes to sanitize_user.diff, 442 bytes (added by , 20 years ago) |
---|
-
functions-formatting.php
266 266 } 267 267 268 268 function sanitize_user( $username ) { 269 return preg_replace('|a-z0-9 _.-|i', '', $username);269 return addslashes(preg_replace('|a-z0-9 _.-|i', '', $username)); 270 270 } 271 271 272 272 function sanitize_title($title, $fallback_title = '') {