diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-04 17:40:31 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-04 17:40:31 +0100 |
commit | f9aa5d297114066d32e3fe3c93f433f83cb12e6c (patch) | |
tree | 94ac2676a7606f727e434086a08c982417da4482 /core | |
parent | e22b2d8b63d4d784dae854e299eed9a840d720df (diff) | |
parent | 5ba6148bfee9399de60317e724e2775eac6238a3 (diff) | |
download | nextcloud-server-f9aa5d297114066d32e3fe3c93f433f83cb12e6c.tar.gz nextcloud-server-f9aa5d297114066d32e3fe3c93f433f83cb12e6c.zip |
Merge pull request #22133 from owncloud/add-check-for-content
Add check for content
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 bc49c61a5aa..de41b66ec32 100644 --- a/core/js/setupchecks.js +++ b/core/js/setupchecks.js @@ -194,7 +194,7 @@ } var afterCall = function(xhr) { var messages = []; - if (xhr.status !== 403 && xhr.status !== 307 && xhr.status !== 301) { + if (xhr.status !== 403 && xhr.status !== 307 && xhr.status !== 301 && xhr.responseText === '') { messages.push({ msg: t('core', 'Your data directory and your files are probably accessible from the Internet. The .htaccess file is not working. We strongly suggest that you configure your web server in a way that the data directory is no longer accessible or you move the data directory outside the web server document root.'), type: OC.SetupChecks.MESSAGE_TYPE_ERROR |