From: Alexander Ebert Date: Mon, 19 Aug 2019 09:47:51 +0000 (+0200) Subject: Avoid dots in IDs, they don't play well X-Git-Tag: 5.2.0_Beta_1~16^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c895bd1028d597c93a69321adc4ae18516099ade;p=GitHub%2FWoltLab%2FWCF.git Avoid dots in IDs, they don't play well --- 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,