From 1b75a23dac83d8fcd8205d40a0c6e72d8a8d4935 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 13 Nov 2024 13:31:30 +0100 Subject: [PATCH] Prevent an extra `` to be added at the end of the document See https://www.woltlab.com/community/thread/309609-%C3%A4nderung-der-script-relocation-im-output-buffer-erzeugt-zus%C3%A4tzlichen-script-tag/ --- wcfsetup/install/files/lib/util/HeaderUtil.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/util/HeaderUtil.class.php b/wcfsetup/install/files/lib/util/HeaderUtil.class.php index 4d2f97f404..753d1b2e74 100644 --- a/wcfsetup/install/files/lib/util/HeaderUtil.class.php +++ b/wcfsetup/install/files/lib/util/HeaderUtil.class.php @@ -197,7 +197,7 @@ final class HeaderUtil limit: 1 ); - if (!$hasMatch) { + if (!$hasMatch && \str_contains($segment, '