Closes #1717
authorAlexander Ebert <ebert@woltlab.com>
Thu, 18 Sep 2014 19:59:01 +0000 (21:59 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 18 Sep 2014 19:59:01 +0000 (21:59 +0200)
wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php

index 94cf103bd1e07f1d34b1630ee7da64f408e2d32b..22a496cccdafbe412675aaeb4fb53b44227f5081 100644 (file)
@@ -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'),