diff options
author | Lukas Reschke <lukas@owncloud.com> | 2016-01-20 23:05:37 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2016-01-22 11:51:54 +0100 |
commit | bc62aa1ef564119d0a51c8140d0340c7d8dfa4d6 (patch) | |
tree | eb6ef80f5bc688473e83a8c209330e7018fed3b2 /lib/private/setup.php | |
parent | 6a3efc6f1bb53bc87f0058d1399689715ded219a (diff) | |
download | nextcloud-server-bc62aa1ef564119d0a51c8140d0340c7d8dfa4d6.tar.gz nextcloud-server-bc62aa1ef564119d0a51c8140d0340c7d8dfa4d6.zip |
Exclude .htaccess modifications from code checker
After the initial installation ownCloud will write some content into the .htaccess file such as the 404 or 403 directives. This adds a magic marker into the .htaccess file and only the content above this marker will be compared in the integrity checker.
Diffstat (limited to 'lib/private/setup.php')
-rw-r--r-- | lib/private/setup.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/setup.php b/lib/private/setup.php index 7903b94ccde..a96dade0665 100644 --- a/lib/private/setup.php +++ b/lib/private/setup.php @@ -408,7 +408,7 @@ class Setup { \OC::$server->getSecureRandom()); $htaccessContent = file_get_contents($setupHelper->pathToHtaccess()); - $content = ''; + $content = "#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####\n"; if (strpos($htaccessContent, 'ErrorDocument 403') === false) { //custom 403 error page $content.= "\nErrorDocument 403 ".\OC::$WEBROOT."/core/templates/403.php"; |