Fixed JSON encoding in IconPreFilterTemplatePlugin (#5413)
authorSascha Greuel <github@1-2.dev>
Tue, 11 Apr 2023 08:55:54 +0000 (10:55 +0200)
committerGitHub <noreply@github.com>
Tue, 11 Apr 2023 08:55:54 +0000 (10:55 +0200)
see 50589568f191c4a3b2c015b60974378b22ccd24c

wcfsetup/install/files/lib/system/template/plugin/IconPrefilterTemplatePlugin.class.php

index d8107b8f1ba903a8ed6d4faf3f6d68d1ca666d9c..67fceda4a1582ef894a8d9699f383739b9dcf22b 100644 (file)
@@ -41,7 +41,7 @@ final class IconPrefilterTemplatePlugin implements IPrefilterTemplatePlugin
                     $html = $this->getIcon($type, $name)->toHtml($size);
 
                     if ($encodeJson) {
-                        return JSON::encode($encodeJson);
+                        return JSON::encode($html);
                     }
 
                     return $html;