Skip to content

Commit

Permalink
fix: Replace conflicting tags in xml_exception template
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
susnux committed Sep 6, 2024
1 parent a05e542 commit 6a738b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/templates/xml_exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ function print_exception(Throwable $e, \OCP\IL10N $l): void {
}

?>
<?xml version="1.0" encoding="utf-8"?>

<?php echo '<?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

0 comments on commit 6a738b1

Please sign in to comment.