diff --git a/Module.php b/Module.php index 56b95578..c5f62b3d 100644 --- a/Module.php +++ b/Module.php @@ -34,7 +34,7 @@ class Module extends ContentContainerModule public $enableTwiqSandboxExtensionConfig = [ 'allowedTags' => ['autoescape', 'apply', 'block', 'if', 'with', 'for', 'set'], 'allowedFilters' => ['capitalize', 'date', 'first', 'upper', 'escape', 'nl2br', 'url_encode', 'round'], - 'allowedFunctions' => ['range', 'max', 'min'], + 'allowedFunctions' => ['range', 'max', 'min', 'random'], 'allowedMethods' => [ 'humhub\modules\custom_pages\modules\template\models\OwnerContentVariable' => '__toString', ], diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index f65c4f0f..e6e9bb09 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,6 +1,10 @@ Changelog ========= +1.10.1 (January 8, 2024) +------------------------ +- Enh: Added "random" to Twig SandboxPolicy + 1.10.0 (January 6, 2024) ------------------------ - Fix: Highlight admin menu entry when "Template" page is active diff --git a/module.json b/module.json index b9430853..c1472f8e 100644 --- a/module.json +++ b/module.json @@ -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.0", + "version": "1.10.1", "homepage": "https://github.com/humhub/custom-pages", "humhub": { "minVersion": "1.14"