Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
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 <[email protected]>
  • Loading branch information
susnux authored and artonge committed Oct 1, 2024
commit 8a4394bfd875f1a7d3bb7601dfd422471af7704c
2 changes: 1 addition & 1 deletion core/templates/xml_exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down