From: Alexander Ebert Date: Sun, 12 Nov 2023 14:07:17 +0000 (+0100) Subject: Prevent images being processed as icon names X-Git-Tag: 6.0.3_dev_1~37 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4282580405ab00b61a102b5eb563207e8f19e115;p=GitHub%2FWoltLab%2FWCF.git 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/ --- 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",