diff options
author | Daniel Peukert <dan.peukert@gmail.com> | 2018-10-17 15:13:52 +0200 |
---|---|---|
committer | Daniel Peukert <dan.peukert@gmail.com> | 2018-10-17 18:10:37 +0200 |
commit | 2da4f96bd6e6929bf9b8bd3ce6c602fa5b00f570 (patch) | |
tree | eeb7b4c34954bdf7bd85640d2babdcf723874c86 /core | |
parent | b2dfcb5a18d8988f8173b993acb5931bb09263c6 (diff) | |
download | nextcloud-server-2da4f96bd6e6929bf9b8bd3ce6c602fa5b00f570.tar.gz nextcloud-server-2da4f96bd6e6929bf9b8bd3ce6c602fa5b00f570.zip |
Remove arrow function
Signed-off-by: Daniel Peukert <dan.peukert@gmail.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/js/setupchecks.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js index ac752f1458c..aa59cc8181b 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.', |