From: Matthias Schmidt Date: Fri, 19 Aug 2016 16:32:15 +0000 (+0200) Subject: Fix saving empty signature X-Git-Tag: 3.0.0_Beta_1~650 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=24ecd433f92d14abec2fa870a210ba06f4d6c95b;p=GitHub%2FWoltLab%2FWCF.git Fix saving empty signature --- diff --git a/wcfsetup/install/files/lib/form/SignatureEditForm.class.php b/wcfsetup/install/files/lib/form/SignatureEditForm.class.php index ad7e051aa4..a56543162e 100644 --- a/wcfsetup/install/files/lib/form/SignatureEditForm.class.php +++ b/wcfsetup/install/files/lib/form/SignatureEditForm.class.php @@ -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); + } } /**