diff --git a/app/install/update/updater.php b/app/install/update/updater.php index 269c827..3bbf9c2 100644 --- a/app/install/update/updater.php +++ b/app/install/update/updater.php @@ -150,14 +150,12 @@ try { ]), 402); } } else { - if (!preg_match('/\.htaccess$/', $item)) { - if (!@copy($item, $target)) { - $error = error_get_last(); - throw new Exception(_s("Can't update %s file - %e", [ - '%s' => $target_visible, - '%e' => $error['message'] - ]), 403); - } + if (!@copy($item, $target)) { + $error = error_get_last(); + throw new Exception(_s("Can't update %s file - %e", [ + '%s' => $target_visible, + '%e' => $error['message'] + ]), 403); } unlink($item); }