From e3787edff949b8c040fe5ecc33c994743aa1fba0 Mon Sep 17 00:00:00 2001 From: Rodolfo Berrios <20590102+rodber@users.noreply.github.com> Date: Mon, 4 Oct 2021 09:28:56 -0300 Subject: [PATCH] feat: updater override .htaccess --- app/install/update/updater.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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); }