Skip to content

Commit 660569d

Browse files
committed
Bugfix: use the correct assertion to test the value of an attribute-name of type basic
1 parent e74f5e6 commit 660569d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/XML/saml/Attribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function __construct(
7979
);
8080
break;
8181
case C::NAMEFORMAT_BASIC:
82-
Assert::validNCName(
82+
Assert::validName(
8383
strval($name),
8484
sprintf("Attribute name `%s` does not match its declared format `%s`", $name, $nameFormat),
8585
);

src/XML/samlp/NameIDPolicy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function __construct(
4747
protected ?SAMLStringValue $SPNameQualifier = null,
4848
protected ?BooleanValue $AllowCreate = null,
4949
) {
50-
if ($AllowCreate->equals(BooleanValue::fromBoolean(true)) {
50+
if ($AllowCreate->equals(BooleanValue::fromBoolean(true))) {
5151
// Per Errata E14: AllowCreate
5252
Assert::notSame(
5353
$Format->getValue(),

0 commit comments

Comments
 (0)