diff --git a/com.woltlab.wcf/templates/emailActivation.tpl b/com.woltlab.wcf/templates/emailActivation.tpl index 400d73dc7c7..9cf04d23d08 100644 --- a/com.woltlab.wcf/templates/emailActivation.tpl +++ b/com.woltlab.wcf/templates/emailActivation.tpl @@ -1,5 +1,5 @@ {include file='authFlowHeader'} -{@$form->getHtml()} +{unsafe:$form->getHtml()} {include file='authFlowFooter'} diff --git a/com.woltlab.wcf/templates/emailNewActivationCode.tpl b/com.woltlab.wcf/templates/emailNewActivationCode.tpl index 400d73dc7c7..9cf04d23d08 100644 --- a/com.woltlab.wcf/templates/emailNewActivationCode.tpl +++ b/com.woltlab.wcf/templates/emailNewActivationCode.tpl @@ -1,5 +1,5 @@ {include file='authFlowHeader'} -{@$form->getHtml()} +{unsafe:$form->getHtml()} {include file='authFlowFooter'} diff --git a/com.woltlab.wcf/templates/email_changeEmailNeedReactivation.tpl b/com.woltlab.wcf/templates/email_changeEmailNeedReactivation.tpl index 2426d506ff8..850b01af431 100644 --- a/com.woltlab.wcf/templates/email_changeEmailNeedReactivation.tpl +++ b/com.woltlab.wcf/templates/email_changeEmailNeedReactivation.tpl @@ -7,7 +7,7 @@ {lang}wcf.user.changeEmail.needReactivation.mail.html.intro{/lang} {capture assign=button} - + {lang}wcf.user.changeEmail.needReactivation.mail.html.activate{/lang} {/capture} diff --git a/com.woltlab.wcf/templates/email_dailyNotification.tpl b/com.woltlab.wcf/templates/email_dailyNotification.tpl index 4c42bc1e697..d14e19a6363 100644 --- a/com.woltlab.wcf/templates/email_dailyNotification.tpl +++ b/com.woltlab.wcf/templates/email_dailyNotification.tpl @@ -13,7 +13,7 @@ {assign var='notificationContent' value=$notification[notificationContent]} {assign var='notificationType' value=$notification[notificationType]} {if $notificationContent|is_array}{if !$notificationContent[variables]|empty}{foreach from=$notificationContent[variables] key='__key' item='__item'}{assign var=$__key value=$__item}{/foreach}{/if}{include file=$notificationContent[template] application=$notificationContent[application] variables=$notificationContent[variables]}{* -*}{else}{@$notificationContent}{/if} +*}{else}{unsafe:$notificationContent}{/if} {/implode} --------------- @@ -38,7 +38,7 @@ {include file=$notificationContent[template] application=$notificationContent[application] variables=$notificationContent[variables]} {else} - {@$notificationContent} + {unsafe:$notificationContent} {/if} {/foreach} diff --git a/com.woltlab.wcf/templates/email_html.tpl b/com.woltlab.wcf/templates/email_html.tpl index 6ddc2de771c..d818a27571e 100644 --- a/com.woltlab.wcf/templates/email_html.tpl +++ b/com.woltlab.wcf/templates/email_html.tpl @@ -14,7 +14,7 @@ } body, body * { - font-family: {@$style->getEmailFontFamily()}; + font-family: {unsafe:$style->getEmailFontFamily()}; font-size: {$style->getVariable('wcfFontSizeDefault')}; } @@ -148,20 +148,20 @@ {/capture} {include file='email_paddingHelper' block=true class='header' content=$header sandbox=true} - {if $beforeContent|isset}{@$beforeContent}{/if} + {if $beforeContent|isset}{unsafe:$beforeContent}{/if} {include file='email_paddingHelper' block=true class='content' content=$content sandbox=true} - {if $afterContent|isset}{@$afterContent}{/if} + {if $afterContent|isset}{unsafe:$afterContent}{/if} {capture assign='footer'} {hascontent} --
{content} {if MAIL_SIGNATURE_HTML|phrase} - {@MAIL_SIGNATURE_HTML|phrase} + {unsafe:MAIL_SIGNATURE_HTML|phrase} {else} - {@MAIL_SIGNATURE|phrase|newlineToBreak} + {unsafe:MAIL_SIGNATURE|phrase|newlineToBreak} {/if} {/content}{/hascontent}{/capture} {include file='email_paddingHelper' block=true class='footer' content=$footer sandbox=true} diff --git a/com.woltlab.wcf/templates/email_lostPassword.tpl b/com.woltlab.wcf/templates/email_lostPassword.tpl index 49d1228fd14..e8aba2978ef 100644 --- a/com.woltlab.wcf/templates/email_lostPassword.tpl +++ b/com.woltlab.wcf/templates/email_lostPassword.tpl @@ -7,7 +7,7 @@ {lang}wcf.user.lostPassword.mail.html.intro{/lang} {capture assign=button} - + {lang}wcf.user.lostPassword.mail.html.reset{/lang} {/capture} diff --git a/com.woltlab.wcf/templates/email_notification.tpl b/com.woltlab.wcf/templates/email_notification.tpl index 2cacef03c05..df84253d903 100644 --- a/com.woltlab.wcf/templates/email_notification.tpl +++ b/com.woltlab.wcf/templates/email_notification.tpl @@ -3,7 +3,7 @@ {lang}wcf.user.notification.mail.plaintext.intro{/lang} {if $notificationContent|is_array}{include file=$notificationContent[template] application=$notificationContent[application]}{* -*}{else}{@$notificationContent}{/if} +*}{else}{unsafe:$notificationContent}{/if} {lang}wcf.user.notification.mail.plaintext.outro{/lang} {/capture} @@ -15,7 +15,7 @@ {if $notificationContent|is_array} {include file=$notificationContent[template] application=$notificationContent[application]} {else} - {@$notificationContent} + {unsafe:$notificationContent} {/if} {capture assign=button} diff --git a/com.woltlab.wcf/templates/email_notification_article.tpl b/com.woltlab.wcf/templates/email_notification_article.tpl index f09403dcc44..d1a508c1929 100644 --- a/com.woltlab.wcf/templates/email_notification_article.tpl +++ b/com.woltlab.wcf/templates/email_notification_article.tpl @@ -1,9 +1,9 @@ {if $mimeType === 'text/plain'} -{lang}{@$languageVariablePrefix}.mail.plaintext{/lang} +{lang}{$languageVariablePrefix}.mail.plaintext{/lang} -{@$articleContent->getMailText($mimeType)} {* this line ends with a space *} +{unsafe:$articleContent->getMailText($mimeType)} {* this line ends with a space *} {else} - {lang}{@$languageVariablePrefix}.mail.html{/lang} + {lang}{$languageVariablePrefix}.mail.html{/lang} {assign var='user' value=$event->getAuthor()} {assign var='article' value=$event->getUserNotificationObject()} @@ -12,7 +12,7 @@ {capture assign='articleContent'} - + diff --git a/com.woltlab.wcf/templates/email_notification_moderationQueueReport.tpl b/com.woltlab.wcf/templates/email_notification_moderationQueueReport.tpl index d3c68c2c50d..511c4530785 100644 --- a/com.woltlab.wcf/templates/email_notification_moderationQueueReport.tpl +++ b/com.woltlab.wcf/templates/email_notification_moderationQueueReport.tpl @@ -3,7 +3,7 @@ {capture assign='authorList'}{lang}wcf.user.notification.mail.authorList.plaintext{/lang}{/capture} {lang}wcf.moderation.report.notification.mail.plaintext{/lang} -{@$moderationQueue->getMailText($mimeType)} {* this line ends with a space *} +{unsafe:$moderationQueue->getMailText($mimeType)} {* this line ends with a space *} {else} {capture assign='authorList'}{lang}wcf.user.notification.mail.authorList.html{/lang}{/capture} {lang}wcf.moderation.report.notification.mail.html{/lang} @@ -15,7 +15,7 @@
{@$user->getAvatar()->getSafeImageTag($avatarSize)}{unsafe:$user->getAvatar()->getSafeImageTag($avatarSize)}

@@ -26,7 +26,7 @@

- {@$articleContent->getMailText($mimeType)} + {unsafe:$articleContent->getMailText($mimeType)}
+ title="{$user->username}">{unsafe:$user->getAvatar()->getSafeImageTag($avatarSize)} diff --git a/com.woltlab.wcf/templates/email_paddingHelper.tpl b/com.woltlab.wcf/templates/email_paddingHelper.tpl index 67cb26edc32..d01cb3db5a4 100644 --- a/com.woltlab.wcf/templates/email_paddingHelper.tpl +++ b/com.woltlab.wcf/templates/email_paddingHelper.tpl @@ -2,7 +2,7 @@
{@$user->getAvatar()->getSafeImageTag($avatarSize)}

@@ -29,7 +29,7 @@

- {@$moderationQueue->getMailText($mimeType)} + {unsafe:$moderationQueue->getMailText($mimeType)}
- {@$content} + {unsafe:$content}
diff --git a/com.woltlab.wcf/templates/email_plaintext.tpl b/com.woltlab.wcf/templates/email_plaintext.tpl index ce543dd2968..1f805b78c7d 100644 --- a/com.woltlab.wcf/templates/email_plaintext.tpl +++ b/com.woltlab.wcf/templates/email_plaintext.tpl @@ -1,12 +1,12 @@ -{if $beforeContent|isset}{@$beforeContent} +{if $beforeContent|isset}{unsafe:$beforeContent} -{/if}{@$content}{if $afterContent|isset} +{/if}{unsafe:$content}{if $afterContent|isset} -{@$afterContent}{/if} +{unsafe:$afterContent}{/if} {hascontent} {* this line ends with a space *} -- {* this line ends with a space *} {content} -{@MAIL_SIGNATURE|phrase} +{unsafe:MAIL_SIGNATURE|phrase} {/content} {/hascontent} diff --git a/com.woltlab.wcf/templates/email_registerNeedActivation.tpl b/com.woltlab.wcf/templates/email_registerNeedActivation.tpl index 31185e0ccd3..c90c8865b8b 100644 --- a/com.woltlab.wcf/templates/email_registerNeedActivation.tpl +++ b/com.woltlab.wcf/templates/email_registerNeedActivation.tpl @@ -7,7 +7,7 @@ {lang}wcf.user.register.needActivation.mail.html.intro{/lang} {capture assign=button} - + {lang}wcf.user.register.needActivation.mail.html.activate{/lang} {/capture} diff --git a/com.woltlab.wcf/templates/email_sendNewPassword.tpl b/com.woltlab.wcf/templates/email_sendNewPassword.tpl index 28c36db2fc6..1a96db9c685 100644 --- a/com.woltlab.wcf/templates/email_sendNewPassword.tpl +++ b/com.woltlab.wcf/templates/email_sendNewPassword.tpl @@ -7,7 +7,7 @@ {lang}wcf.acp.user.sendNewPassword.mail.html.intro{/lang} {capture assign=button} - + {lang}wcf.acp.user.sendNewPassword.mail.html.reset{/lang} {/capture}