Commit 00927b23 authored by Lukas Haemmerle's avatar Lukas Haemmerle

Fixed issue #3918 where keywords separated with + are not unescaped correctly

parent dd45f9fb
......@@ -499,7 +499,9 @@ function getMDUIKeywords($RoleDescriptorNode){
$MDUIKeywords = $RoleDescriptorNode->getElementsByTagNameNS('urn:oasis:names:tc:SAML:metadata:ui', 'Keywords');
foreach( $MDUIKeywords as $MDUIKeywordEntry ){
$lang = $MDUIKeywordEntry->getAttributeNodeNS('http://www.w3.org/XML/1998/namespace', 'lang')->nodeValue;
$Entity[$lang] = trimToSingleLine($MDUIKeywordEntry->nodeValue);
$keywordEntry = $MDUIKeywordEntry->nodeValue;
$keywordEntry = preg_replace('/\+/',' ',$keywordEntry);
$Entity[$lang] = trimToSingleLine($keywordEntry);
}
return $Entity;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment