Merge pull request #22133 from owncloud/add-check-for-content
Add check for content
This commit is contained in:
commit
f9aa5d2971
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue