diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-09-10 22:05:20 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-09-10 22:05:20 +0200 |
commit | 65aab3dc8c88f012e063ccea7cacc17f528b7d4d (patch) | |
tree | 281c65eb0e9095dc1bcd68c9ef51ae1afa9018ed /core/setup | |
parent | 8ae612f6930235aa1768d3a5beeff65a3565d90a (diff) | |
download | nextcloud-server-65aab3dc8c88f012e063ccea7cacc17f528b7d4d.tar.gz nextcloud-server-65aab3dc8c88f012e063ccea7cacc17f528b7d4d.zip |
Check for failure in creating htaccessWorking testfile
Diffstat (limited to 'core/setup')
-rw-r--r-- | core/setup/controller.php | 14 |
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, ); } } |