Fix formatting of js error log entries generated from responses

Replace multiple whitespace characters with a single one and remove linebreaks.

refs #8711
This commit is contained in:
Matthias Jentsch 2015-04-16 12:13:31 +02:00
parent a4d815051c
commit aa409bda72
1 changed files with 1 additions and 1 deletions

View File

@ -640,7 +640,7 @@
this.icinga.logger.error(
req.status,
errorThrown + ':',
$(req.responseText).text().slice(0, 100)
$(req.responseText).text().replace(/\s+/g, ' ').slice(0, 100)
);
this.renderContentToContainer(
req.responseText,