From: Alexander Ebert Date: Wed, 13 Nov 2024 12:31:30 +0000 (+0100) Subject: Prevent an extra `` to be added at the end of the document X-Git-Tag: 6.1.1_dev_1~12 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1b75a23dac83d8fcd8205d40a0c6e72d8a8d4935;p=GitHub%2FWoltLab%2FWCF.git 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/ --- 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, '