Browse Source

Remove arrow function

Signed-off-by: Daniel Peukert <dan.peukert@gmail.com>
tags/v15.0.0beta1
Daniel Peukert 5 years ago
parent
commit
2da4f96bd6
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      core/js/setupchecks.js

+ 1
- 1
core/js/setupchecks.js View File

@@ -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.',

Loading…
Cancel
Save