From 26acee7924b360dfed4a72cabfabe2544d723619 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 15 Aug 2013 12:31:57 +0200 Subject: [PATCH] Fixed external URLs in quotes --- com.woltlab.wcf/templates/quoteBBCodeTag.tpl | 2 +- .../install/files/lib/system/bbcode/QuoteBBCode.class.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/com.woltlab.wcf/templates/quoteBBCodeTag.tpl b/com.woltlab.wcf/templates/quoteBBCodeTag.tpl index c1c386b0dd..d1001b3604 100644 --- a/com.woltlab.wcf/templates/quoteBBCodeTag.tpl +++ b/com.woltlab.wcf/templates/quoteBBCodeTag.tpl @@ -3,7 +3,7 @@

{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/wcfsetup/install/files/lib/system/bbcode/QuoteBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/QuoteBBCode.class.php index 573a39016f..52312f2c2b 100644 --- a/wcfsetup/install/files/lib/system/bbcode/QuoteBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/QuoteBBCode.class.php @@ -1,5 +1,6 @@ assign(array( 'content' => $content, 'quoteLink' => (!empty($openingTag['attributes'][1]) ? $openingTag['attributes'][1] : ''), - 'quoteAuthor' => (!empty($openingTag['attributes'][0]) ? $openingTag['attributes'][0] : '') + 'quoteAuthor' => (!empty($openingTag['attributes'][0]) ? $openingTag['attributes'][0] : ''), + 'isExternalQuoteLink' => (!empty($openingTag['attributes'][1]) ? !ApplicationHandler::getInstance()->isInternalURL($openingTag['attributes'][1]) : false) )); return WCF::getTPL()->fetch('quoteBBCodeTag'); } -- 2.20.1