From 4282580405ab00b61a102b5eb563207e8f19e115 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 12 Nov 2023 15:07:17 +0100 Subject: [PATCH] Prevent images being processed as icon names See https://www.woltlab.com/community/thread/302272-mitgelieferte-grafik-als-editoricon-f%C3%BCr-einen-bbcode-wird-nicht-als-solche-erkan/ --- .../package/plugin/BBCodePackageInstallationPlugin.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php index 4fc18b3153..7784e1e904 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php @@ -103,7 +103,7 @@ class BBCodePackageInstallationPlugin extends AbstractXMLPackageInstallationPlug $nodeValue[$attributeNo][$attributeValue->tagName] = $attributeValue->nodeValue; } } - } elseif ($element->tagName === 'wysiwygicon') { + } elseif ($element->tagName === 'wysiwygicon' && !\str_contains($element->nodeValue, '.')) { $solid = $element->getAttribute('solid'); $nodeValue = \sprintf( "%s;%s", -- 2.20.1