Avoid dots in IDs, they don't play well
authorAlexander Ebert <ebert@woltlab.com>
Mon, 19 Aug 2019 09:47:51 +0000 (11:47 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 19 Aug 2019 09:47:51 +0000 (11:47 +0200)
wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodePre.class.php

index 94f71c5cb0331a7ee19c6cccb865a090dd756836..0f5250ff89b117cdcab4a4f101408637915cbe5e 100644 (file)
@@ -49,7 +49,7 @@ class HtmlOutputNodePre extends AbstractHtmlOutputNode {
                                        $prefix = '';
                                        // Create a unique prefix if possible
                                        if (isset($context['objectType']) && isset($context['objectID'])) {
-                                               $prefix = $context['objectType'].'_'.$context['objectID'].'_';
+                                               $prefix = str_replace('.', '_', $context['objectType']).'_'.$context['objectID'].'_';
                                        }
                                        $htmlNodeProcessor->addNodeData($this, $nodeIdentifier, [
                                                'content' => $element->textContent,