Fix double html encoding in trophy activity events
authorjoshuaruesweg <ruesweg@woltlab.com>
Mon, 18 Jan 2021 12:54:21 +0000 (13:54 +0100)
committerjoshuaruesweg <ruesweg@woltlab.com>
Mon, 18 Jan 2021 12:54:21 +0000 (13:54 +0100)
wcfsetup/install/files/lib/system/user/activity/event/TrophyReceivedUserActivityEvent.class.php

index 3f94bdc06b9796cffb2209d9fe0e3ff9f4d05184..972dc67b01986d8d6f2764615aee4c4d80e18b36 100644 (file)
@@ -3,7 +3,6 @@ namespace wcf\system\user\activity\event;
 use wcf\data\user\trophy\UserTrophyList;
 use wcf\system\SingletonFactory;
 use wcf\system\WCF;
-use wcf\util\StringUtil;
 
 /**
  * User activity event implementation for receiving a trophy.
@@ -39,7 +38,7 @@ class TrophyReceivedUserActivityEvent extends SingletonFactory implements IUserA
                                $event->setIsAccessible();
                                
                                $event->setTitle(WCF::getLanguage()->getDynamicVariable('wcf.user.trophy.recentActivity.received', ['userTrophy' => $trophies[$event->objectID]]));
-                               $event->setDescription(StringUtil::encodeHTML($trophies[$event->objectID]->getDescription()));
+                               $event->setDescription($trophies[$event->objectID]->getDescription());
                        }
                        else {
                                $event->setIsOrphaned();