From: Alexander Ebert Date: Thu, 18 Sep 2014 19:59:01 +0000 (+0200) Subject: Closes #1717 X-Git-Tag: 2.1.0_Alpha_1~331 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=85ffc9ef484494e2e5dccc648bb8d869f688a788;p=GitHub%2FWoltLab%2FWCF.git Closes #1717 --- diff --git a/wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php index 94cf103bd1..22a496cccd 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php @@ -4,6 +4,7 @@ use wcf\data\bbcode\attribute\BBCodeAttributeEditor; use wcf\data\package\PackageCache; use wcf\system\exception\SystemException; use wcf\system\WCF; +use wcf\util\StringUtil; /** * Installs, updates and deletes bbcodes. @@ -83,7 +84,7 @@ class BBCodePackageInstallationPlugin extends AbstractXMLPackageInstallationPlug */ protected function prepareImport(array $data) { $data = array( - 'bbcodeTag' => $data['attributes']['name'], + 'bbcodeTag' => mb_strtolower(StringUtil::trim($data['attributes']['name'])), 'htmlOpen' => (!empty($data['elements']['htmlopen']) ? $data['elements']['htmlopen'] : ''), 'htmlClose' => (!empty($data['elements']['htmlclose']) ? $data['elements']['htmlclose'] : ''), 'allowedChildren' => (!empty($data['elements']['allowedchildren']) ? $data['elements']['allowedchildren'] : 'all'),