aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-09-06 16:49:33 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-09-09 11:46:36 +0000
commit8efd5f4d61a2963dc289932d82134bd3131fa2f7 (patch)
treef9a9c6eb8a3c7a7341209bf5dea187cd8e5b70d1
parent789ccf8798625b56a7bf8194052041425776e8a5 (diff)
downloadnextcloud-server-8efd5f4d61a2963dc289932d82134bd3131fa2f7.tar.gz
nextcloud-server-8efd5f4d61a2963dc289932d82134bd3131fa2f7.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>
-rw-r--r--core/templates/xml_exception.php2
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>