From 2da4f96bd6e6929bf9b8bd3ce6c602fa5b00f570 Mon Sep 17 00:00:00 2001 From: Daniel Peukert Date: Wed, 17 Oct 2018 15:13:52 +0200 Subject: [PATCH] Remove arrow function Signed-off-by: Daniel Peukert --- core/js/setupchecks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js index ac752f1458..aa59cc8181 100644 --- a/core/js/setupchecks.js +++ b/core/js/setupchecks.js @@ -442,7 +442,7 @@ } } - var xssfields = xhr.getResponseHeader('X-XSS-Protection') ? xhr.getResponseHeader('X-XSS-Protection').split(';').map(item => item.trim()) : []; + var xssfields = xhr.getResponseHeader('X-XSS-Protection') ? xhr.getResponseHeader('X-XSS-Protection').split(';').map(function(item) { return item.trim(); }) : []; if (xssfields.length === 0 || xssfields.indexOf('1') === -1 || xssfields.indexOf('mode=block') === -1) { messages.push({ msg: t('core', 'The "{header}" HTTP header doesn\'t contain "{expected}". This is a potential security or privacy risk, as it is recommended to adjust this setting accordingly.',