From babcf924f23c35e3bf33a0182bfeae5018f3453d Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Wed, 17 Jan 2024 15:55:16 +0100 Subject: [PATCH] Remove if both(next and previous) are null. This should be handled by the default link detection --- .../html/input/node/HtmlInputNodeProcessor.class.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php index 2f9349d43f..41efb19e7a 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php @@ -825,11 +825,8 @@ class HtmlInputNodeProcessor extends AbstractHtmlNodeProcessor //

…
https://example.com
…

//

…
https://example.com
…

if ( - $previousSibling === null && $nextSibling === null - || ( - $previousSibling !== null && $nextSibling !== null - && $previousSibling->nodeName === 'br' && $nextSibling->nodeName === 'br' - ) + $previousSibling !== null && $nextSibling !== null + && $previousSibling->nodeName === 'br' && $nextSibling->nodeName === 'br' ) { $this->plainLinks[] = $plainLink->setIsStandalone($parent, false); continue; -- 2.20.1