diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 5d5d197ca..000000000 --- a/.gitattributes +++ /dev/null @@ -1,8 +0,0 @@ -# Exclude development and CI/CD files from release archives -/.github export-ignore -/.phan export-ignore -/tests export-ignore -/codeception.yml export-ignore -/.travis.yml export-ignore -/.dependencies export-ignore -/.editorconfig export-ignore diff --git a/CHANGELOG.md b/CHANGELOG.md index f9980a19e..6f8032d09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# v1.7.50.8 +## 11/06/2025 + +1. [](#bugfix) + * Removed over zealous safety checks + * Removed .gitattributes which was causing some unintended issues + # v1.7.50.7 ## 11/05/2025 diff --git a/system/defines.php b/system/defines.php index 1c00fd38e..09c42272e 100644 --- a/system/defines.php +++ b/system/defines.php @@ -9,7 +9,7 @@ // Some standard defines define('GRAV', true); -define('GRAV_VERSION', '1.7.50.7'); +define('GRAV_VERSION', '1.7.50.8'); define('GRAV_SCHEMA', '1.7.0_2020-11-20_1'); define('GRAV_TESTING', false); diff --git a/system/src/Grav/Common/Upgrade/SafeUpgradeService.php b/system/src/Grav/Common/Upgrade/SafeUpgradeService.php index e1ef1e2d9..f52fb5cbd 100644 --- a/system/src/Grav/Common/Upgrade/SafeUpgradeService.php +++ b/system/src/Grav/Common/Upgrade/SafeUpgradeService.php @@ -914,18 +914,6 @@ class SafeUpgradeService $live = $this->rootPath . '/' . $relative; $stage = $packagePath . '/' . $relative; - // Only delete from staging area, NEVER from live installation - // Check if stage path is directly under root (e.g., /home/grav/user) - // but allow subdirectories (e.g., /home/grav/tmp/.../package/user) - $realStage = realpath(dirname($stage)); - $realRoot = realpath($this->rootPath); - if ($realStage === $realRoot) { - throw new RuntimeException( - 'SAFETY VIOLATION: Attempted to delete directory from live installation during hydration. ' . - 'Stage path appears to be directly in live root. This should never happen.' - ); - } - Folder::delete($stage); if (!is_dir($live)) {