From 8f6eebb994d9d9687d30aa1e4e1ea2ea0f5ef2d0 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 3 Feb 2021 13:39:33 +0100 Subject: [PATCH] Added missing parantheses Stictly speaking this was a bug, but based on how the HTML is laid out, it will never cause any unexpected side effects. Fixing this for the sake of code clarity. --- .../input/node/HtmlInputNodeWoltlabMetacodeMarker.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacodeMarker.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacodeMarker.class.php index bd91006a1b..f91c128c69 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacodeMarker.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacodeMarker.class.php @@ -382,7 +382,7 @@ class HtmlInputNodeWoltlabMetacodeMarker extends AbstractHtmlInputNode // block elements can sometimes contain a line break after the end tag // which needs to be removed to avoid it being split into a separate p if ($node = $end->nextSibling) { - if ($node->nodeType === \XML_TEXT_NODE && $node->textContent === "\n" || $node->textContent === "\r\n") { + if ($node->nodeType === \XML_TEXT_NODE && ($node->textContent === "\n" || $node->textContent === "\r\n")) { DOMUtil::removeNode($node); } } -- 2.20.1