Skip to content

Commit 4e62463

Browse files
committed
Merge branch 'release/3.0.4' into v3
2 parents 180a2ce + 6b4c600 commit 4e62463

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## 3.0.4 - 2025.06.10
6+
### Fixed
7+
* Remove errant dependency on SEOmatic in the `SecurityPolicy` helper class
8+
59
## 3.0.3 - 2025.06.08
610
### Added
711
* Initial release

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nystudio107/craft-twig-sandbox",
33
"description": "Allows you to easily create a sandboxed Twig environment where you can control what tags, filters, functions, and object methods/properties are allowed",
4-
"version": "3.0.3",
4+
"version": "3.0.4",
55
"keywords": [
66
"craft",
77
"cms",

src/helpers/SecurityPolicy.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
use Craft;
66
use craft\helpers\ArrayHelper;
7-
use craft\helpers\StringHelper;
87
use nystudio107\crafttwigsandbox\twig\BaseSecurityPolicy;
9-
use nystudio107\seomatic\Seomatic;
108
use function is_array;
119

1210
class SecurityPolicy
@@ -57,7 +55,7 @@ public static function getConfigFromFile(string $filePath, ?string $alias = null
5755
$mergedConfig = [];
5856
/** @var array $config */
5957
foreach ($config as $env => $envConfig) {
60-
if ($env === '*' || StringHelper::contains(Seomatic::$environment, $env)) {
58+
if ($env === '*') {
6159
$mergedConfig = ArrayHelper::merge($mergedConfig, $envConfig);
6260
}
6361
}

0 commit comments

Comments
 (0)