From a3779294e63f9b6913d54b24aaad257d0631ae6e Mon Sep 17 00:00:00 2001 From: Thijs Kinkhorst <thijs@kinkhorst.com> Date: Fri, 24 Jun 2022 12:12:41 +0000 Subject: [PATCH] Final place to remove incorrect htmlspecialchars --- src/SimpleSAML/Utils/Attributes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SimpleSAML/Utils/Attributes.php b/src/SimpleSAML/Utils/Attributes.php index 791e4da44..7244f3267 100644 --- a/src/SimpleSAML/Utils/Attributes.php +++ b/src/SimpleSAML/Utils/Attributes.php @@ -100,7 +100,7 @@ class Attributes * * This function takes in a namespaced attribute name and splits it in a namespace/attribute name tuple. * When no namespace is found in the attribute name, it will be namespaced with the default namespace. - * This default namespace can be overriden by supplying a second parameter to this function. + * This default namespace can be overridden by supplying a second parameter to this function. * * @param string $name The namespaced attribute name. * @param string $defaultns The default namespace that should be used when no namespace is found. @@ -114,6 +114,6 @@ class Attributes $defaultns = substr($name, 0, $slash); $name = substr($name, $slash + 1); } - return [htmlspecialchars($defaultns), htmlspecialchars($name)]; + return [$defaultns, $name]; } } -- GitLab