diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-05 10:14:28 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2018-07-05 10:14:28 +0300 |
commit | dc72c1eebe1855939e6507d53be0d69fb9042469 (patch) | |
tree | b8f92baaf814b2151f0f0a5bc235a1e7eaad60f2 /interface/js | |
parent | d6314a4a2c3d596116fcac08293b08431ce36155 (diff) | |
download | rspamd-dc72c1eebe1855939e6507d53be0d69fb9042469.tar.gz rspamd-dc72c1eebe1855939e6507d53be0d69fb9042469.zip |
[WebUI] Do not accept passwords containing control characters
Diffstat (limited to 'interface/js')
-rw-r--r-- | interface/js/app/rspamd.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index bdd8d8793..49d3bf11b 100644 --- a/interface/js/app/rspamd.js +++ b/interface/js/app/rspamd.js @@ -267,7 +267,7 @@ function ($, d3pie, visibility, tab_stat, tab_graph, tab_config, $("#connectForm").on("submit", function (e) { e.preventDefault(); var password = $("#connectPassword").val(); - if (!/^[\u0000-\u007f]*$/.test(password)) { + if (!(/^[\u0020-\u007e]*$/).test(password)) { alertMessage("alert-modal alert-error", "Invalid characters in the password"); $("#connectPassword").focus(); return; |