From 24ecd433f92d14abec2fa870a210ba06f4d6c95b Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 19 Aug 2016 18:32:15 +0200 Subject: [PATCH] Fix saving empty signature --- wcfsetup/install/files/lib/form/SignatureEditForm.class.php | 5 +++++ 1 file changed, 5 insertions(+) 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); + } } /** -- 2.20.1