summaryrefslogtreecommitdiffstats
path: root/core/setup
diff options
context:
space:
mode:
Diffstat (limited to 'core/setup')
-rw-r--r--core/setup/controller.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/core/setup/controller.php b/core/setup/controller.php
index 54bfe14612a..8ddcf19bb6d 100644
--- a/core/setup/controller.php
+++ b/core/setup/controller.php
@@ -60,8 +60,18 @@ class Controller {
$vulnerableToNullByte = true;
}
+ $errors = array();
+
// Protect data directory here, so we can test if the protection is working
\OC_Setup::protectDataDirectory();
+ try {
+ $htaccessworking = \OC_Util::isHtAccessWorking();
+ } catch (\OC\HintException $e) {
+ $errors[] = array(
+ 'error' => $e->getMessage(),
+ 'hint' => $e->getHint()
+ );
+ }
return array(
'hasSQLite' => $hasSQLite,
@@ -71,9 +81,9 @@ class Controller {
'hasMSSQL' => $hasMSSQL,
'directory' => $datadir,
'secureRNG' => \OC_Util::secureRNGAvailable(),
- 'htaccessWorking' => \OC_Util::isHtAccessWorking(),
+ 'htaccessWorking' => $htaccessWorking,
'vulnerableToNullByte' => $vulnerableToNullByte,
- 'errors' => array(),
+ 'errors' => $errors,
);
}
}