Fixed BBCode tag issue
authorMarcel Werk <burntime@woltlab.com>
Fri, 16 May 2014 22:08:15 +0000 (00:08 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 16 May 2014 22:08:15 +0000 (00:08 +0200)
wcfsetup/install/files/lib/acp/form/BBCodeAddForm.class.php

index 4b41410bc80bfb3a41f117b7e76b6096195ddbbf..855e9a64c560e7d752b5e592521abf2aa7cfb107 100644 (file)
@@ -114,7 +114,7 @@ class BBCodeAddForm extends AbstractForm {
                
                if (isset($_POST['allowedChildren'])) $this->allowedChildren = StringUtil::trim($_POST['allowedChildren']);
                if (isset($_POST['attributes'])) $this->attributes = $_POST['attributes'];
-               if (isset($_POST['bbcodeTag'])) $this->bbcodeTag = StringUtil::trim($_POST['bbcodeTag']);
+               if (isset($_POST['bbcodeTag'])) $this->bbcodeTag = mb_strtolower(StringUtil::trim($_POST['bbcodeTag']));
                if (isset($_POST['className'])) $this->className = StringUtil::trim($_POST['className']);
                if (isset($_POST['htmlClose'])) $this->htmlClose = StringUtil::trim($_POST['htmlClose']);
                if (isset($_POST['htmlOpen'])) $this->htmlOpen = StringUtil::trim($_POST['htmlOpen']);