From: Vsevolod Stakhov Date: Thu, 8 Jun 2017 10:14:13 +0000 (+0100) Subject: [WebUI] Use modern protocol for checking messages X-Git-Tag: 1.6.0~40 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e5fbc287dcad24950f887f127a629d931ec0e89f;p=rspamd.git [WebUI] Use modern protocol for checking messages --- 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) {