From 85ffc9ef484494e2e5dccc648bb8d869f688a788 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 18 Sep 2014 21:59:01 +0200 Subject: [PATCH] Closes #1717 --- .../package/plugin/BBCodePackageInstallationPlugin.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'), -- 2.20.1