mirror of
https://github.com/getgrav/grav.git
synced 2026-03-01 10:01:26 +01:00
Merge branch 'release/1.7.50.8'
This commit is contained in:
8
.gitattributes
vendored
8
.gitattributes
vendored
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user