mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 08:29:10 -05:00
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>
This commit is contained in:
parent
ce9be3d5cd
commit
8a4394bfd8
1 changed files with 1 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue