Merge branch '5.3' into 5.4
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 23 Jul 2021 07:12:08 +0000 (09:12 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 23 Jul 2021 07:12:08 +0000 (09:12 +0200)
wcfsetup/install/files/lib/data/smiley/Smiley.class.php

index 20bc1a772666bf1f3b96632a77e8f7a09a519b0a..e30135421df90acee740203f1c85364cff0e2052 100644 (file)
@@ -139,6 +139,8 @@ class Smiley extends DatabaseObject implements ITitledObject
             $class = ' ' . $class;
         }
 
-        return '<img src="' . StringUtil::encodeHTML($this->getURL()) . '" alt="' . StringUtil::encodeHTML($this->smileyCode) . '" title="' . WCF::getLanguage()->get($this->smileyTitle) . '" class="smiley' . $class . '"' . $srcset . $height . $width . ' loading="eager">';
+        $title = StringUtil::encodeHTML(WCF::getLanguage()->get($this->smileyTitle));
+
+        return '<img src="' . StringUtil::encodeHTML($this->getURL()) . '" alt="' . StringUtil::encodeHTML($this->smileyCode) . '" title="' . $title . '" class="smiley' . $class . '"' . $srcset . $height . $width . ' loading="eager">';
     }
 }