From bc0e1f3fd2740a696370195e6c6d3ebeb822e14b Mon Sep 17 00:00:00 2001 From: mutec Date: Sun, 13 Aug 2023 15:10:07 +0200 Subject: [PATCH] fix usage of forbidden functions in templates see #5512 --- .../templates/aclPermissionJavaScript.tpl | 2 +- .../templates/email_dailyNotification.tpl | 8 ++----- .../acp/templates/aclPermissionJavaScript.tpl | 2 +- .../DailyMailNotificationCronjob.class.php | 22 +++++++++++++++++-- .../cronjob/ExceptionMailerCronjob.class.php | 1 + .../BBCodePackageInstallationPlugin.class.php | 5 ++++- .../SmileyPackageInstallationPlugin.class.php | 10 +++++++-- wcfsetup/install/lang/de.xml | 18 +++++++-------- wcfsetup/install/lang/en.xml | 18 +++++++-------- 9 files changed, 55 insertions(+), 31 deletions(-) diff --git a/com.woltlab.wcf/templates/aclPermissionJavaScript.tpl b/com.woltlab.wcf/templates/aclPermissionJavaScript.tpl index 7d78a1ccff6..3b552765f79 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}