Prevent images being processed as icon names
authorAlexander Ebert <ebert@woltlab.com>
Sun, 12 Nov 2023 14:07:17 +0000 (15:07 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 12 Nov 2023 14:07:17 +0000 (15:07 +0100)
See https://www.woltlab.com/community/thread/302272-mitgelieferte-grafik-als-editoricon-f%C3%BCr-einen-bbcode-wird-nicht-als-solche-erkan/

wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php

index 4fc18b315393b1bd5dceea91197a28788823ad4c..7784e1e90488a26f54a7a3ca90f0995995c01f6f 100644 (file)
@@ -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",