From 879b065d2010c93c3e14564a0d1ded94cfbfe466 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 14 Jul 2016 11:49:11 +0200 Subject: [PATCH] Added rel="noopener noreferrer" for target=_blank links --- com.woltlab.wcf/templates/quoteBBCodeTag.tpl | 2 +- com.woltlab.wcf/templates/userInformationButtons.tpl | 2 +- com.woltlab.wcf/templates/usersOnlineList.tpl | 2 +- .../lib/system/option/user/FacebookUserOptionOutput.class.php | 2 +- .../system/option/user/GooglePlusUserOptionOutput.class.php | 3 ++- .../lib/system/option/user/TwitterUserOptionOutput.class.php | 2 +- .../files/lib/system/option/user/URLUserOptionOutput.class.php | 2 +- wcfsetup/install/files/lib/util/StringUtil.class.php | 2 +- 8 files changed, 9 insertions(+), 8 deletions(-) diff --git a/com.woltlab.wcf/templates/quoteBBCodeTag.tpl b/com.woltlab.wcf/templates/quoteBBCodeTag.tpl index acefb454e4..cfb85165ec 100644 --- a/com.woltlab.wcf/templates/quoteBBCodeTag.tpl +++ b/com.woltlab.wcf/templates/quoteBBCodeTag.tpl @@ -7,7 +7,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/com.woltlab.wcf/templates/userInformationButtons.tpl b/com.woltlab.wcf/templates/userInformationButtons.tpl index 9f3adf21c7..2c8a84c51e 100644 --- a/com.woltlab.wcf/templates/userInformationButtons.tpl +++ b/com.woltlab.wcf/templates/userInformationButtons.tpl @@ -3,7 +3,7 @@
    {content} {if $user->homepage && $user->homepage != 'http://'} -
  • +
  • {/if} {if $user->userID != $__wcf->user->userID} diff --git a/com.woltlab.wcf/templates/usersOnlineList.tpl b/com.woltlab.wcf/templates/usersOnlineList.tpl index 0e36d16183..f26b8cc5cb 100644 --- a/com.woltlab.wcf/templates/usersOnlineList.tpl +++ b/com.woltlab.wcf/templates/usersOnlineList.tpl @@ -155,7 +155,7 @@
    -

    {if $user->getSpider()->spiderURL}{$user->getSpider()->spiderName}{else}{$user->getSpider()->spiderName}{/if}

    +

    {if $user->getSpider()->spiderURL}{$user->getSpider()->spiderName}{else}{$user->getSpider()->spiderName}{/if}

    {@$locationData}
    diff --git a/wcfsetup/install/files/lib/system/option/user/FacebookUserOptionOutput.class.php b/wcfsetup/install/files/lib/system/option/user/FacebookUserOptionOutput.class.php index c76870d9a2..3a6a4f8213 100644 --- a/wcfsetup/install/files/lib/system/option/user/FacebookUserOptionOutput.class.php +++ b/wcfsetup/install/files/lib/system/option/user/FacebookUserOptionOutput.class.php @@ -24,6 +24,6 @@ class FacebookUserOptionOutput implements IUserOptionOutput { $url = StringUtil::encodeHTML('http://www.facebook.com/'.$value); $value = StringUtil::encodeHTML($value); - return ''.$value.''; + return ''.$value.''; } } diff --git a/wcfsetup/install/files/lib/system/option/user/GooglePlusUserOptionOutput.class.php b/wcfsetup/install/files/lib/system/option/user/GooglePlusUserOptionOutput.class.php index d979cca51f..e4268fca32 100644 --- a/wcfsetup/install/files/lib/system/option/user/GooglePlusUserOptionOutput.class.php +++ b/wcfsetup/install/files/lib/system/option/user/GooglePlusUserOptionOutput.class.php @@ -24,6 +24,7 @@ class GooglePlusUserOptionOutput implements IUserOptionOutput { $url = StringUtil::encodeHTML('https://plus.google.com/'.$value.'/posts'); $value = StringUtil::encodeHTML($value); - return ''.$value.''; + + return ''.$value.''; } } diff --git a/wcfsetup/install/files/lib/system/option/user/TwitterUserOptionOutput.class.php b/wcfsetup/install/files/lib/system/option/user/TwitterUserOptionOutput.class.php index a08cb1513b..6e1eb2070b 100644 --- a/wcfsetup/install/files/lib/system/option/user/TwitterUserOptionOutput.class.php +++ b/wcfsetup/install/files/lib/system/option/user/TwitterUserOptionOutput.class.php @@ -24,6 +24,6 @@ class TwitterUserOptionOutput implements IUserOptionOutput { $url = StringUtil::encodeHTML('http://twitter.com/'.$value); $value = StringUtil::encodeHTML($value); - return ''.$value.''; + return ''.$value.''; } } diff --git a/wcfsetup/install/files/lib/system/option/user/URLUserOptionOutput.class.php b/wcfsetup/install/files/lib/system/option/user/URLUserOptionOutput.class.php index 20c3b377d5..0dcff5a716 100644 --- a/wcfsetup/install/files/lib/system/option/user/URLUserOptionOutput.class.php +++ b/wcfsetup/install/files/lib/system/option/user/URLUserOptionOutput.class.php @@ -23,7 +23,7 @@ class URLUserOptionOutput implements IUserOptionOutput { $value = self::getURL($value); $value = StringUtil::encodeHTML($value); - return ''.$value.''; + return ''.$value.''; } /** diff --git a/wcfsetup/install/files/lib/util/StringUtil.class.php b/wcfsetup/install/files/lib/util/StringUtil.class.php index 9f5b7eae93..b09ce450fb 100644 --- a/wcfsetup/install/files/lib/util/StringUtil.class.php +++ b/wcfsetup/install/files/lib/util/StringUtil.class.php @@ -759,7 +759,7 @@ final class StringUtil { if (!$encodeTitle) $title = self::encodeHTML($title); } - return ''.($encodeTitle ? self::encodeHTML($title) : $title).''; + return ''.($encodeTitle ? self::encodeHTML($title) : $title).''; } /** -- 2.20.1