diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-06-08 11:14:13 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-06-08 11:14:13 +0100 |
commit | e5fbc287dcad24950f887f127a629d931ec0e89f (patch) | |
tree | 473268fde1af35c96d4ab4b6c106d9b4134e4c8a /interface | |
parent | 538766fc1ecc29a2b2d49eea762ce0d2e02c7610 (diff) | |
download | rspamd-e5fbc287dcad24950f887f127a629d931ec0e89f.tar.gz rspamd-e5fbc287dcad24950f887f127a629d931ec0e89f.zip |
[WebUI] Use modern protocol for checking messages
Diffstat (limited to 'interface')
-rw-r--r-- | interface/js/app/upload.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/interface/js/app/upload.js b/interface/js/app/upload.js index 1a05a757d..caeb88d64 100644 --- a/interface/js/app/upload.js +++ b/interface/js/app/upload.js @@ -89,7 +89,7 @@ function($) { xhr.setRequestHeader('Password', rspamd.getPassword()); }, success: function (input) { - var data = input['default']; + var data = input; if (data.action) { rspamd.alertMessage('alert-success', 'Data successfully scanned'); var action = ''; @@ -119,7 +119,7 @@ function($) { var sym_desc = {}; var nsym = 0; - $.each(data, function (i, item) { + $.each(data.symbols, function (i, item) { if (typeof item == 'object') { var sym_id = "sym_" + nsym; if (item.description) { |