mirror of
https://github.com/getgrav/grav.git
synced 2025-10-26 07:56:07 +01:00
Fixed infinite loop in blueprints with extend@ to a parent stream
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
1. [](#bugfix)
|
||||
* Fixed `Security::sanitizeSVG()` creating an empty file if SVG file cannot be parsed
|
||||
* Fixed infinite loop in blueprints with `extend@` to a parent stream
|
||||
|
||||
# v1.7.0-rc.16
|
||||
## 09/01/2020
|
||||
|
||||
@@ -349,7 +349,11 @@ class Blueprint extends BlueprintForm
|
||||
|
||||
if (\is_string($path) && !$locator->isStream($path)) {
|
||||
// Find path overrides.
|
||||
$paths = (array) ($this->overrides[$path] ?? null);
|
||||
if (null === $context) {
|
||||
$paths = (array) ($this->overrides[$path] ?? null);
|
||||
} else {
|
||||
$paths = [];
|
||||
}
|
||||
|
||||
// Add path pointing to default context.
|
||||
if ($context === null) {
|
||||
|
||||
Reference in New Issue
Block a user