aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorm.fu <m_fu@310415.no-reply.drupal.org>2009-10-16 16:45:58 +0000
committerm.fu <m_fu@310415.no-reply.drupal.org>2009-10-16 16:45:58 +0000
commiteb86ef3fc329aa42dad7a519e0ae69c4bfd0138e (patch)
treed19f7f0bc6fd550f66f75d24dd5de297261f80e0
parent4244050f540dd6c76d80cf8f6a06c82e2abc2e57 (diff)
downloaddrupal_htpasswdsync-eb86ef3fc329aa42dad7a519e0ae69c4bfd0138e.tar.gz
drupal_htpasswdsync-eb86ef3fc329aa42dad7a519e0ae69c4bfd0138e.tar.bz2
drupal_htpasswdsync-eb86ef3fc329aa42dad7a519e0ae69c4bfd0138e.zip
Fixed #588208 by ikogan : username with t are concidered invalid
-rw-r--r--CHANGELOG.txt6
-rw-r--r--HTPasswdSync.module5
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 &lt;space&gt;, :'));
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy