diff options
author | chris <chris@jalakai.co.uk> | 2006-11-04 18:43:49 +0100 |
---|---|---|
committer | chris <chris@jalakai.co.uk> | 2006-11-04 18:43:49 +0100 |
commit | 16470b1d421766d09281c87059a90b84c3a2e100 (patch) | |
tree | 445c33ac369917c75abca0fc95717665ae53c910 | |
parent | 5fe80182e90a8e357a89eeb5f0ddc7fa849dd376 (diff) | |
download | rpg-16470b1d421766d09281c87059a90b84c3a2e100.tar.gz rpg-16470b1d421766d09281c87059a90b84c3a2e100.tar.bz2 |
add standard username cleaning to resend password (fixes bug#961)
darcs-hash:20061104174349-9b6ab-74e7c5a3e7a14d12253d36a9d09a35866125a7ec.gz
-rw-r--r-- | inc/auth.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/auth.php b/inc/auth.php index 2e9d51767..07f335627 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -654,7 +654,8 @@ function act_resendpwd(){ msg($lang['resendpwdmissing'], -1); return false; } else { - $user = $_POST['login']; + $_POST['login'] = preg_replace('/.*:/','',$_POST['login']); + $user = cleanID($_POST['login']); } $userinfo = $auth->getUserData($user); |