diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-09-06 16:49:33 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-09-09 11:45:34 +0000 |
commit | 1966c9d0715ffeaa4f1fabe5f7de2901460e2db0 (patch) | |
tree | 227204a9628021c312b18b83f4ae5f6ea4769d9f /core | |
parent | 8f6620d5529a7e914c4990b2075e120335c49172 (diff) | |
download | nextcloud-server-1966c9d0715ffeaa4f1fabe5f7de2901460e2db0.tar.gz nextcloud-server-1966c9d0715ffeaa4f1fabe5f7de2901460e2db0.zip |
fix: Replace conflicting tags in `xml_exception` template
The `<?xml` tag is interpreted as PHP short tags, so this causes errors.
Instead just print that part of the template.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'core')
-rw-r--r-- | core/templates/xml_exception.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/templates/xml_exception.php b/core/templates/xml_exception.php index d7fb276a730..342238d824b 100644 --- a/core/templates/xml_exception.php +++ b/core/templates/xml_exception.php @@ -15,8 +15,8 @@ function print_exception(Throwable $e, \OCP\IL10N $l): void { } } +print_unescaped('<?xml version="1.0" encoding="utf-8"?>' . "\n"); ?> -<?xml version="1.0" encoding="utf-8"?> <d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns"> <s:exception><?php p($l->t('Internal Server Error')) ?></s:exception> <s:message> |