From: mutec Date: Sun, 13 Aug 2023 13:10:07 +0000 (+0200) Subject: fix usage of forbidden functions in templates X-Git-Tag: 6.0.0_Beta_1~12^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bc0e1f3fd2740a696370195e6c6d3ebeb822e14b;p=GitHub%2FWoltLab%2FWCF.git fix usage of forbidden functions in templates see #5512 --- diff --git a/com.woltlab.wcf/templates/aclPermissionJavaScript.tpl b/com.woltlab.wcf/templates/aclPermissionJavaScript.tpl index 7d78a1ccff..3b552765f7 100644 --- a/com.woltlab.wcf/templates/aclPermissionJavaScript.tpl +++ b/com.woltlab.wcf/templates/aclPermissionJavaScript.tpl @@ -1,5 +1,5 @@ {if $categoryName|isset && $categoryName|str_ends_with:'.*'} - {assign var='__categoryNameStart' value=$categoryName|substr:0:-1} + {assign var='__categoryNameStart' value=$categoryName|mb_substr:0:-1} {/if}