From aa409bda72b86da27edc7db14f34ab9af3d8802a Mon Sep 17 00:00:00 2001 From: Matthias Jentsch Date: Thu, 16 Apr 2015 12:13:31 +0200 Subject: [PATCH] Fix formatting of js error log entries generated from responses Replace multiple whitespace characters with a single one and remove linebreaks. refs #8711 --- public/js/icinga/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index 1c674b947..535e414a9 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -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,