From eb86ef3fc329aa42dad7a519e0ae69c4bfd0138e Mon Sep 17 00:00:00 2001 From: "m.fu" Date: Fri, 16 Oct 2009 16:45:58 +0000 Subject: Fixed #588208 by ikogan : username with t are concidered invalid --- CHANGELOG.txt | 6 ++++-- HTPasswdSync.module | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 7dc8153..2605dce 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,9 +1,11 @@ $Id$ +v1.3 bug fix release +Fixed #588208 by ikogan : username with t are concidered invalid + v1.2 bug fix release Fixed #503718 by m.fu : htpassword corruption when enabling/disabling user -Fixed #437904 by fasdalf@fasdalf.ru : group file not generated properly, now happen on - after_update +Fixed #437904 by fasdalf@fasdalf.ru : group file not generated properly, now happen on after_update Fixed #437844 by fasdalf@fasdalf.ru : error when deleting one user Fixed #503726 by m.fu: group file no longer contain disabled users Added #503720 by m.fu : option to overwrite htpasswd diff --git a/HTPasswdSync.module b/HTPasswdSync.module index a77fb3b..e949051 100644 --- a/HTPasswdSync.module +++ b/HTPasswdSync.module @@ -2,6 +2,9 @@ // $Id$ /* * $Log$ + * Revision 1.1.2.5 2009/10/16 16:45:58 mfu + * Fixed #588208 by ikogan : username with t are concidered invalid + * * Revision 1.1.2.4 2009/06/27 12:41:12 mfu * Fixed #437852 by fasdalf@fasdalf.ru : name change is detected and handled properly * @@ -330,7 +333,7 @@ function _htpasswdsync_delete($account) { */ function _htpasswdsync_validate($edit, $account) { if (isset($edit['name'])) { - if (ereg('[ :\t]', $edit['name'])) { + if (ereg('[[:space:]]', $edit['name'])) { form_set_error('htpasswdsync', t('The username contains an illegal character, like <space>, :')); } -- cgit v1.2.3