Merge pull request #7627 from MrPetovan/bug/warnings

Check the root directory is writable before copying .htaccess in Worker\Cron
pull/7628/head
Philipp 2019-09-14 14:46:17 +02:00 zatwierdzone przez GitHub
commit ae462655a0
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -104,7 +104,7 @@ class Cron
// Ensure to have a .htaccess file.
// this is a precaution for systems that update automatically
$basepath = $a->getBasePath();
if (!file_exists($basepath . '/.htaccess')) {
if (!file_exists($basepath . '/.htaccess') && is_writable($basepath)) {
copy($basepath . '/.htaccess-dist', $basepath . '/.htaccess');
}