From 9cc0b5c539fcc55782fd4ac76a09840ad05b7f50 Mon Sep 17 00:00:00 2001 From: Ioannis Igoumenos Date: Thu, 19 Dec 2024 15:54:24 +0200 Subject: [PATCH] xml response to UTF-8 --- src/Controller/Cas10Controller.php | 2 +- src/Http/XmlResponse.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/Cas10Controller.php b/src/Controller/Cas10Controller.php index c3ddaca..7802503 100644 --- a/src/Controller/Cas10Controller.php +++ b/src/Controller/Cas10Controller.php @@ -85,7 +85,7 @@ public function validate( // Check if any of the required query parameters are missing // Even though we can delegate the check to Symfony's `MapQueryParameter` we cannot return // the failure response needed. As a result, we allow a default value, and we handle the missing - // values afterwards. + // values afterward. if ($service === null || $ticket === null) { $messagePostfix = $service === null ? 'service' : 'ticket'; Logger::debug("casserver: Missing service parameter: [{$messagePostfix}]"); diff --git a/src/Http/XmlResponse.php b/src/Http/XmlResponse.php index 8480b65..23e00c0 100644 --- a/src/Http/XmlResponse.php +++ b/src/Http/XmlResponse.php @@ -11,7 +11,7 @@ class XmlResponse extends Response public function __construct(?string $content = '', int $status = 200, array $headers = []) { parent::__construct($content, $status, array_merge($headers, [ - 'Content-Type' => 'text/xml; charset=ISO-8859-1', + 'Content-Type' => 'text/xml; charset=UTF-8', ])); } }