Fix saving empty signature
authorMatthias Schmidt <gravatronics@live.com>
Fri, 19 Aug 2016 16:32:15 +0000 (18:32 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 19 Aug 2016 16:32:19 +0000 (18:32 +0200)
wcfsetup/install/files/lib/form/SignatureEditForm.class.php

index ad7e051aa48aa05ce6cbf318cbd5fee79f14ea3f..a56543162e991f3ff8e203b1f0005c296527088b 100644 (file)
@@ -3,6 +3,7 @@ namespace wcf\form;
 use wcf\data\user\User;
 use wcf\data\user\UserAction;
 use wcf\system\exception\PermissionDeniedException;
+use wcf\system\html\input\HtmlInputProcessor;
 use wcf\system\menu\user\UserMenu;
 use wcf\system\user\signature\SignatureCache;
 use wcf\system\WCF;
@@ -73,6 +74,10 @@ class SignatureEditForm extends MessageForm {
                if (!empty($this->text)) {
                        $this->validateText();
                }
+               else {
+                       $this->htmlInputProcessor = new HtmlInputProcessor();
+                       $this->htmlInputProcessor->process($this->text, $this->messageObjectType, WCF::getUser()->userID);
+               }
        }
        
        /**