We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34c082a commit e0acd8aCopy full SHA for e0acd8a
1 file changed
modules/core/src/Auth/Process/AttributeLimit.php
@@ -174,10 +174,12 @@ public function process(array &$state): void
174
continue;
175
}
176
} elseif (($regexpMatch = self::matchAnyRegex($name, $allowedAttributeRegex)) !== null) {
177
- $attributes[$name] = $this->filterAttributeValues(
178
- $attributes[$name],
179
- $allowedAttributeRegex[$regexpMatch]
180
- );
+ if (array_key_exists($regexpMatch, $allowedAttributeRegex)) {
+ $attributes[$name] = $this->filterAttributeValues(
+ $attributes[$name],
+ $allowedAttributeRegex[$regexpMatch]
181
+ );
182
+ }
183
if (!empty($attributes[$name])) {
184
185
0 commit comments