Something is broken. Please let us know what you were doing when this error occurred.
We will fix it as soon as possible. Sorry for any inconvenience caused.
diff --git a/src/Symfony/Component/ErrorCatcher/ErrorRenderer/XmlErrorRenderer.php b/src/Symfony/Component/ErrorCatcher/ErrorRenderer/XmlErrorRenderer.php
index 158165230f..c64df7e17e 100644
--- a/src/Symfony/Component/ErrorCatcher/ErrorRenderer/XmlErrorRenderer.php
+++ b/src/Symfony/Component/ErrorCatcher/ErrorRenderer/XmlErrorRenderer.php
@@ -40,7 +40,10 @@ class XmlErrorRenderer implements ErrorRendererInterface
*/
public function render(FlattenException $exception): string
{
+ $title = $this->escapeXml($exception->getTitle());
$message = $this->escapeXml($exception->getMessage());
+ $statusCode = $this->escapeXml($exception->getStatusCode());
+ $charset = $this->escapeXml($this->charset);
$exceptions = '';
if ($this->debug) {
@@ -63,10 +66,10 @@ class XmlErrorRenderer implements ErrorRendererInterface
}
return <<