From 568e5be7dc8f9f868d1c693b95721e6be80bdcb6 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 6 Aug 2020 23:19:27 +0200 Subject: [PATCH] Add rel="ugc" for links within user generated content --- com.woltlab.wcf/templates/quoteMetaCode.tpl | 2 +- .../templates/userInformationButtons.tpl | 2 +- .../article/content/ArticleContent.class.php | 5 ++++ .../lib/data/box/content/BoxContent.class.php | 1 + .../data/custom/option/CustomOption.class.php | 2 +- .../data/page/content/PageContent.class.php | 1 + .../lib/system/bbcode/MediaBBCode.class.php | 4 ++-- .../bbcode/SimpleMessageParser.class.php | 2 +- .../html/output/HtmlOutputProcessor.class.php | 24 +++++++++++++++++++ .../output/node/HtmlOutputNodeA.class.php | 10 ++++++-- .../output/node/HtmlOutputNodeImg.class.php | 11 +++++---- .../user/FacebookUserOptionOutput.class.php | 2 +- .../user/TwitterUserOptionOutput.class.php | 2 +- .../option/user/URLUserOptionOutput.class.php | 2 +- ...AttributesFunctionTemplatePlugin.class.php | 5 ++++ .../files/lib/util/StringUtil.class.php | 11 ++++++--- 16 files changed, 68 insertions(+), 18 deletions(-) diff --git a/com.woltlab.wcf/templates/quoteMetaCode.tpl b/com.woltlab.wcf/templates/quoteMetaCode.tpl index ebbfe33476..b9a0fc49e0 100644 --- a/com.woltlab.wcf/templates/quoteMetaCode.tpl +++ b/com.woltlab.wcf/templates/quoteMetaCode.tpl @@ -11,7 +11,7 @@ {if $quoteAuthor} {if $quoteLink} - {lang}wcf.bbcode.quote.title{/lang} + {lang}wcf.bbcode.quote.title{/lang} {else} {lang}wcf.bbcode.quote.title{/lang} {/if} diff --git a/com.woltlab.wcf/templates/userInformationButtons.tpl b/com.woltlab.wcf/templates/userInformationButtons.tpl index bd9ed1fcb2..0a5c409322 100644 --- a/com.woltlab.wcf/templates/userInformationButtons.tpl +++ b/com.woltlab.wcf/templates/userInformationButtons.tpl @@ -3,7 +3,7 @@