Skip to content

Commit c415a65

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: Typo fix [2.3] Static Code Analysis for Components Added support \IteratorAggregate for UniqueEntityValidator Update AbstractChoiceListTest.php Fix #17306 Paths with % in it are note allowed (like urlencoded) Use proper class to fetch $versionStrategy property Added sort order SORT_STRING for params in UriSigner Remove normalizer cache in Serializer class
2 parents d88c7d8 + 58b142e commit c415a65

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Firewall/DigestAuthenticationListener.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,8 @@ public function validateAndDecode($entryPointKey, $expectedRealm)
170170
throw new BadCredentialsException(sprintf('Missing mandatory digest value; received header "%s" (%s)', $this->header, implode(', ', $keys)));
171171
}
172172

173-
if ('auth' === $this->elements['qop']) {
174-
if (!isset($this->elements['nc']) || !isset($this->elements['cnonce'])) {
175-
throw new BadCredentialsException(sprintf('Missing mandatory digest value; received header "%s"', $this->header));
176-
}
173+
if ('auth' === $this->elements['qop'] && !isset($this->elements['nc'], $this->elements['cnonce'])) {
174+
throw new BadCredentialsException(sprintf('Missing mandatory digest value; received header "%s"', $this->header));
177175
}
178176

179177
if ($expectedRealm !== $this->elements['realm']) {

0 commit comments

Comments
 (0)