summaryrefslogtreecommitdiff
path: root/inc/auth.php
diff options
context:
space:
mode:
authorchris <chris@jalakai.co.uk>2006-11-04 18:43:49 +0100
committerchris <chris@jalakai.co.uk>2006-11-04 18:43:49 +0100
commit16470b1d421766d09281c87059a90b84c3a2e100 (patch)
tree445c33ac369917c75abca0fc95717665ae53c910 /inc/auth.php
parent5fe80182e90a8e357a89eeb5f0ddc7fa849dd376 (diff)
downloadrpg-16470b1d421766d09281c87059a90b84c3a2e100.tar.gz
rpg-16470b1d421766d09281c87059a90b84c3a2e100.tar.bz2
add standard username cleaning to resend password (fixes bug#961)
darcs-hash:20061104174349-9b6ab-74e7c5a3e7a14d12253d36a9d09a35866125a7ec.gz
Diffstat (limited to 'inc/auth.php')
-rw-r--r--inc/auth.php3
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);