summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-12-06 15:34:53 +0100
committerLukas Reschke <lukas@owncloud.com>2014-12-06 15:34:53 +0100
commit2b762271808598f69927a3d279ad24402a34f54e (patch)
tree6b63003c5b6fab89199dd29e8571226d46e08d7b /core
parent94eb2e782fa164492dd2665e6651eaa7068039aa (diff)
downloadnextcloud-server-2b762271808598f69927a3d279ad24402a34f54e.tar.gz
nextcloud-server-2b762271808598f69927a3d279ad24402a34f54e.zip
Check for working .htaccess via AJAX
Fixes https://github.com/owncloud/core/issues/12650
Diffstat (limited to 'core')
-rw-r--r--core/js/setupchecks.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js
index f351c1b451a..db5365c124d 100644
--- a/core/js/setupchecks.js
+++ b/core/js/setupchecks.js
@@ -49,11 +49,16 @@
var afterCall = function(data, statusText, xhr) {
var messages = [];
if (xhr.status === 200 && data) {
- if (!data.serverhasinternetconnection) {
+ if (!data.serverHasInternetConnection) {
messages.push(
t('core', 'This server has no working internet connection. This means that some of the features like mounting of external storage, notifications about updates or installation of 3rd party apps donĀ“t work. Accessing files from remote and sending of notification emails might also not work. We suggest to enable internet connection for this server if you want to have all features.')
);
}
+ if(!data.dataDirectoryProtected) {
+ messages.push(
+ 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 webserver in a way that the data directory is no longer accessible or you move the data directory outside the webserver document root.')
+ );
+ }
} else {
messages.push(t('core', 'Error occurred while checking server setup'));
}