aboutsummaryrefslogtreecommitdiffstats
path: root/HTPasswdSync.module
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 /HTPasswdSync.module
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
Diffstat (limited to 'HTPasswdSync.module')
-rw-r--r--HTPasswdSync.module5
1 files changed, 4 insertions, 1 deletions
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