-
-
Notifications
You must be signed in to change notification settings - Fork 498
Open
Description
In advanced settings, when setting the organization name to something including a & character:
'organization' => array (
'en-US' => array(
'name' => 'Name & Name2',
'displayname' => 'Name & Name2',
'url' => 'https://some-url.com'
),
),
then fetching the SP metadata:
$samlSettings = new Settings($saml_settings);
$metadata = $samlSettings->getSPMetadata();
I get an error: Error parsing metadata. Error parsing metadata from Saml2/Metadata.php:
try {
$xml = Utils::loadXML($xml, $metadata);
if (!$xml) {
throw new Exception('Error parsing metadata');
}
} catch (Exception $e) {
throw new Exception('Error parsing metadata. '.$e->getMessage());
}
Changing the & character with & fixes it, so it seems like this string wasn't being escaped properly.
Metadata
Metadata
Assignees
Labels
No labels