Skip to content

Commit 157a877

Browse files
committed
Fix bug on parseRemoteXML and parseFileXML. Internal calls to parseXML missed the desiredNameIdFormat parameter
1 parent 59d34dd commit 157a877

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Saml2/IdPMetadataParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static function parseRemoteXML($url, $entityId = null, $desiredNameIdForm
3535

3636
$xml = curl_exec($ch);
3737
if ($xml !== false) {
38-
$metadataInfo = self::parseXML($xml, $entityId, $desiredSSOBinding, $desiredSLOBinding);
38+
$metadataInfo = self::parseXML($xml, $entityId, $desiredNameIdFormat, $desiredSSOBinding, $desiredSLOBinding);
3939
} else {
4040
throw new Exception(curl_error($ch), curl_errno($ch));
4141
}
@@ -65,7 +65,7 @@ public static function parseFileXML($filepath, $entityId = null, $desiredNameIdF
6565
try {
6666
if (file_exists($filepath)) {
6767
$data = file_get_contents($filepath);
68-
$metadataInfo = self::parseXML($data, $entityId, $desiredSSOBinding, $desiredSLOBinding);
68+
$metadataInfo = self::parseXML($data, $entityId, $desiredNameIdFormat, $desiredSSOBinding, $desiredSLOBinding);
6969
}
7070
} catch (Exception $e) {
7171
}

0 commit comments

Comments
 (0)