From: Alexander Ebert Date: Fri, 28 Jul 2023 11:40:37 +0000 (+0200) Subject: Prevent smileys being translated by the browser X-Git-Tag: 6.0.0_Alpha_8~41 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d3cef062c5d99ae17fdc2e21fa0e2c8272f87fff;p=GitHub%2FWoltLab%2FWCF.git Prevent smileys being translated by the browser See https://www.woltlab.com/community/thread/300836-problem-with-the-editor-and-chrome-s-translation-function/ --- diff --git a/wcfsetup/install/files/lib/data/smiley/Smiley.class.php b/wcfsetup/install/files/lib/data/smiley/Smiley.class.php index dfd4ebdc01..ee129f663a 100644 --- a/wcfsetup/install/files/lib/data/smiley/Smiley.class.php +++ b/wcfsetup/install/files/lib/data/smiley/Smiley.class.php @@ -136,7 +136,7 @@ class Smiley extends DatabaseObject implements ITitledObject $width = ($this->getWidth()) ? ' width="' . $this->getWidth() . '"' : ''; return \sprintf( - '%s', + '%s', StringUtil::encodeHTML($this->getURL()), StringUtil::encodeHTML($this->smileyCode), StringUtil::encodeHTML(WCF::getLanguage()->get($this->smileyTitle)),