From 6f40129cfc00017e53a54d37a7a603db1dfe571c Mon Sep 17 00:00:00 2001 From: Nick Liu Date: Wed, 24 Jan 2018 05:27:38 -0600 Subject: [PATCH] Allow spaces in passwords system-wide by default Some e107 users and admins may use whitespace in their passwords, but the client-side HTML validation currently prohibited them by default. The server accepts passwords with whitespace if this client-side validation is disabled, so there does not appear to be a technical reason for this restriction. This commit allows whitespaces in passwords by default. Fixes: #3006 --- e107_handlers/form_handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index 68cce32d5..29721d10e 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -1798,7 +1798,7 @@ class e_form $addon .= "
"; } - $options['pattern'] = vartrue($options['pattern'],'[\S]{4,}'); + $options['pattern'] = vartrue($options['pattern'],'.{4,}'); $options['required'] = varset($options['required'], 1); $options['class'] = vartrue($options['class'],'e-password tbox');