aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-07-05 10:14:28 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-07-05 10:14:28 +0300
commitdc72c1eebe1855939e6507d53be0d69fb9042469 (patch)
treeb8f92baaf814b2151f0f0a5bc235a1e7eaad60f2 /interface/js
parentd6314a4a2c3d596116fcac08293b08431ce36155 (diff)
downloadrspamd-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.js2
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;