From d3cef062c5d99ae17fdc2e21fa0e2c8272f87fff Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 28 Jul 2023 13:40:37 +0200 Subject: [PATCH] Prevent smileys being translated by the browser See https://www.woltlab.com/community/thread/300836-problem-with-the-editor-and-chrome-s-translation-function/ --- wcfsetup/install/files/lib/data/smiley/Smiley.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)), -- 2.20.1