Skip to content

Commit

Permalink
Fixed missing function allow
Browse files Browse the repository at this point in the history
  • Loading branch information
luke- committed Jan 8, 2024
1 parent ddcdaec commit fab3c36
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

1.10.2 (January 8, 2024)
------------------------
- Fix: Twig SandboxPolicy Function Whitelist broken

1.10.1 (January 8, 2024)
------------------------
- Enh: Added "random" to Twig SandboxPolicy
Expand Down
1 change: 1 addition & 0 deletions lib/templates/twig/TwigEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ private function getSecurityPolicy(): ?SecurityPolicy
$policy->setAllowedTags($module->enableTwiqSandboxExtensionConfig['allowedTags']);
$policy->setAllowedMethods($module->enableTwiqSandboxExtensionConfig['allowedMethods']);
$policy->setAllowedFilters($module->enableTwiqSandboxExtensionConfig['allowedFilters']);
$policy->setAllowedFunctions($module->enableTwiqSandboxExtensionConfig['allowedFunctions']);
$policy->setAllowedProperties($module->enableTwiqSandboxExtensionConfig['allowedProperties']);

return $policy;
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Custom Pages",
"description": "Create custom pages and widgets and share them with your users. Take advantage of a wide range of editing options, including HTML and Markdown.",
"keywords": ["pages", "custom", "iframe", "markdown", "link", "navigation", "spaces"],
"version": "1.10.1",
"version": "1.10.2",
"homepage": "https://github.com/humhub/custom-pages",
"humhub": {
"minVersion": "1.14"
Expand Down

0 comments on commit fab3c36

Please sign in to comment.