]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Do not accept passwords containing control characters
authorAlexander Moisseev <moiseev@mezonplus.ru>
Thu, 5 Jul 2018 07:14:28 +0000 (10:14 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Thu, 5 Jul 2018 07:14:28 +0000 (10:14 +0300)
interface/js/app/rspamd.js

index bdd8d8793e3a38698a175139f81c46169c8ca709..49d3bf11ba703360cedd4be29a388274add7315b 100644 (file)
@@ -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;