From c895bd1028d597c93a69321adc4ae18516099ade Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 19 Aug 2019 11:47:51 +0200 Subject: [PATCH] Avoid dots in IDs, they don't play well --- .../lib/system/html/output/node/HtmlOutputNodePre.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodePre.class.php b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodePre.class.php index 94f71c5cb0..0f5250ff89 100644 --- a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodePre.class.php +++ b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodePre.class.php @@ -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, -- 2.20.1