diff options
-rw-r--r-- | lib/private/Setup.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Setup.php b/lib/private/Setup.php index 657156cf171..77eeea22ad3 100644 --- a/lib/private/Setup.php +++ b/lib/private/Setup.php @@ -522,6 +522,10 @@ class Setup { \OC::$server->query(Installer::class) ); + if (!is_writable($setupHelper->pathToHtaccess())) { + return false; + } + $htaccessContent = file_get_contents($setupHelper->pathToHtaccess()); $content = "#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####\n"; $htaccessContent = explode($content, $htaccessContent, 2)[0]; |