Skip to content

Commit 58b142e

Browse files
committed
Merge branch '2.3' into 2.7
* 2.3: Typo fix [2.3] Static Code Analysis for Components Added support \IteratorAggregate for UniqueEntityValidator Fix #17306 Paths with % in it are note allowed (like urlencoded) Added sort order SORT_STRING for params in UriSigner Remove normalizer cache in Serializer class
2 parents 689e0ca + b46aa11 commit 58b142e

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
@@ -171,10 +171,8 @@ public function validateAndDecode($entryPointKey, $expectedRealm)
171171
throw new BadCredentialsException(sprintf('Missing mandatory digest value; received header "%s" (%s)', $this->header, implode(', ', $keys)));
172172
}
173173

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

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

0 commit comments

Comments
 (0)