Skip to content

Commit

Permalink
Bugfix: properly deal with unset AllowCreate
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jun 12, 2023
1 parent 58c40d3 commit 20c0dde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SAML2/XML/samlp/NameIDPolicy.php
Expand Up @@ -96,12 +96,12 @@ public static function fromXML(DOMElement $xml): static

$Format = self::getOptionalAttribute($xml, 'Format', null);
$SPNameQualifier = self::getOptionalAttribute($xml, 'SPNameQualifier', null);
$AllowCreate = self::getOptionalAttribute($xml, 'AllowCreate', null);
$AllowCreate = self::getOptionalBooleanAttribute($xml, 'AllowCreate', null);

return new static(
$Format,
$SPNameQualifier,
($AllowCreate === 'true') ? true : false,
$AllowCreate,
);
}

Expand Down

0 comments on commit 20c0dde

Please sign in to comment.