loader.js: Also match newlines when interpreting multipart content

This commit is contained in:
Johannes Meyer 2020-10-14 14:50:52 +02:00
parent e68e8c8e9c
commit 70c3023f3c
1 changed files with 1 additions and 1 deletions

View File

@ -763,7 +763,7 @@
var contentSeparator = req.getResponseHeader('X-Icinga-Multipart-Content');
if (!! contentSeparator) {
$.each(req.responseText.split(contentSeparator), function (idx, el) {
var match = el.match(/for=(\S+)\s+(.*)/m);
var match = el.match(/for=(\S+)\s+(.*)/ms);
if (!! match) {
var $target = $('#' + match[1]);
if ($target.length) {