<header>
<h3>
{if $quoteLink}
- <a href="{@$quoteLink}">{lang}wcf.bbcode.quote.title{/lang}</a>
+ <a href="{@$quoteLink}"{if $isExternalQuoteLink} class="externalURL"{if EXTERNAL_LINK_REL_NOFOLLOW} rel="nofollow"{/if}{if EXTERNAL_LINK_TARGET_BLANK} target="_blank"{/if}{/if}>{lang}wcf.bbcode.quote.title{/lang}</a>
{else}
{lang}wcf.bbcode.quote.title{/lang}
{/if}
<?php
namespace wcf\system\bbcode;
+use wcf\system\application\ApplicationHandler;
use wcf\system\WCF;
/**
WCF::getTPL()->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');
}