Skip to content

Commit a96f921

Browse files
committed
Merge branch '2.8' into 3.0
* 2.8: Typo fix [WebProfiler] Fixed sf-minitoolbar height [2.3] Static Code Analysis for Components [Serializer] Use $context['cache_key'] to enhance caching Fixed erroneous deprecation notice for extended Interfaces [Routing] cs fix 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 [Serializer] ObjectNormalizer: context can contain not serializable data
2 parents 9027dc8 + c415a65 commit a96f921

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)