diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-09-06 16:49:33 +0200 |
---|---|---|
committer | Louis <louis@chmn.me> | 2024-09-09 17:30:19 +0200 |
commit | 414a66e02383de0b805a17361966cc269a90416c (patch) | |
tree | 95207be87f048bf71f497d49665037f1b2ed5195 /core | |
parent | 8524ab9a0937f084ae9ea0ab19aafc0f2fac06ed (diff) | |
download | nextcloud-server-414a66e02383de0b805a17361966cc269a90416c.tar.gz nextcloud-server-414a66e02383de0b805a17361966cc269a90416c.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> |