Removed superfluous bbcode class
authorAlexander Ebert <ebert@woltlab.com>
Tue, 13 Jun 2017 20:52:45 +0000 (22:52 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 13 Jun 2017 20:52:50 +0000 (22:52 +0200)
See #2301

com.woltlab.wcf/bbcode.xml
wcfsetup/install/files/lib/system/bbcode/HtmlBBCode.class.php [deleted file]

index d3dd5d6ee77836ce41f6654db51300d93ffd59ba..096dd6eb186918f60f0aab13cc466f27126665a3 100644 (file)
                </bbcode>
                
                <bbcode name="html">
-                       <classname>wcf\system\bbcode\HtmlBBCode</classname>
                        <isBlockElement>1</isBlockElement>
                        <sourcecode>1</sourcecode>
                        <wysiwygicon>fa-html5</wysiwygicon>
diff --git a/wcfsetup/install/files/lib/system/bbcode/HtmlBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/HtmlBBCode.class.php
deleted file mode 100644 (file)
index 549bd4d..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-namespace wcf\system\bbcode;
-use wcf\util\StringUtil;
-
-/**
- * Parses the [html] bbcode tag.
- * 
- * @author     Alexander Ebert
- * @copyright  2001-2017 WoltLab GmbH
- * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package    WoltLabSuite\Core\System\Bbcode
- */
-class HtmlBBCode extends AbstractBBCode {
-       /**
-        * @inheritDoc
-        */
-       public function getParsedTag(array $openingTag, $content, array $closingTag, BBCodeParser $parser) {
-               $email = '';
-               if (isset($openingTag['attributes'][0])) {
-                       $email = $openingTag['attributes'][0];
-               }
-               $email = StringUtil::decodeHTML($email);
-               
-               return '<a href="mailto:' . StringUtil::encodeAllChars($email) . '">' . StringUtil::encodeHTML($email) . '</a>';
-       }
-}