mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 15:31:42 +01:00
Trim user info when adding new user. http://mosquito.wordpress.org/view.php?id=1110 Props: gzfelix
git-svn-id: http://svn.automattic.com/wordpress/trunk@2449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
61aca1c30a
commit
57f741c827
@ -24,13 +24,13 @@ switch ($action) {
|
||||
case 'adduser':
|
||||
check_admin_referer();
|
||||
|
||||
$user_login = wp_specialchars($_POST['user_login']);
|
||||
$user_login = wp_specialchars(trim($_POST['user_login']));
|
||||
$pass1 = $_POST['pass1'];
|
||||
$pass2 = $_POST['pass2'];
|
||||
$user_email = wp_specialchars($_POST['email']);
|
||||
$user_firstname = wp_specialchars($_POST['firstname']);
|
||||
$user_lastname = wp_specialchars($_POST['lastname']);
|
||||
$user_uri = wp_specialchars($_POST['uri']);
|
||||
$user_email = wp_specialchars(trim($_POST['email']));
|
||||
$user_firstname = wp_specialchars(trim($_POST['firstname']));
|
||||
$user_lastname = wp_specialchars(trim($_POST['lastname']));
|
||||
$user_uri = wp_specialchars(trim($_POST['uri']));
|
||||
|
||||
/* checking that username has been typed */
|
||||
if ($user_login == '')
|
||||
|
Loading…
Reference in New Issue
Block a user