diff options
author | Kévin Dunglas <dunglas@gmail.com> | 2016-01-13 17:23:43 +0100 |
---|---|---|
committer | Kévin Dunglas <dunglas@gmail.com> | 2016-01-13 17:23:43 +0100 |
commit | fa09cb6bf2d54f26b9769987954e1df8f1a74d6e (patch) | |
tree | 5597f166ace7244f044f28b3504eb844cbd4a96a /Http | |
parent | 1274ee3e52ad6429f341bd523e91e1cd3e25f533 (diff) | |
parent | c1107b54d59383b1cef27064706f2543ba725395 (diff) | |
download | symfony-security-fa09cb6bf2d54f26b9769987954e1df8f1a74d6e.zip symfony-security-fa09cb6bf2d54f26b9769987954e1df8f1a74d6e.tar.gz symfony-security-fa09cb6bf2d54f26b9769987954e1df8f1a74d6e.tar.bz2 |
Merge branch '3.0'
* 3.0: (22 commits)
[Yaml] Fix tests on PHP 7.0.2
[FrameworkBundle] Don't log twice with the error handler
[2.7] Workaround https://bugs.php.net/63206
[2.3] Workaround https://bugs.php.net/63206
Add closing parenthesis
[Serializer] Unset object_to_populate after using it
Typo fix
[WebProfiler] Fixed sf-minitoolbar height
[HttpFoundation] Fixed Request HTTP_USER_AGENT on 3.X versions
[2.3] Static Code Analysis for Components
[Serializer] Use $context['cache_key'] to enhance caching
Removed non-existent directory from composer autoload
Fixed erroneous deprecation notice for extended Interfaces
[Routing] cs fix
Added support \IteratorAggregate for UniqueEntityValidator
Update AbstractChoiceListTest.php
[Serializer] Allow to use proxies in object_to_populate
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
...
Conflicts:
src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php
Diffstat (limited to 'Http')
-rw-r--r-- | Http/Firewall/DigestAuthenticationListener.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Http/Firewall/DigestAuthenticationListener.php b/Http/Firewall/DigestAuthenticationListener.php index ef723ea..71bdf6c 100644 --- a/Http/Firewall/DigestAuthenticationListener.php +++ b/Http/Firewall/DigestAuthenticationListener.php @@ -170,10 +170,8 @@ class DigestData throw new BadCredentialsException(sprintf('Missing mandatory digest value; received header "%s" (%s)', $this->header, implode(', ', $keys))); } - if ('auth' === $this->elements['qop']) { - if (!isset($this->elements['nc']) || !isset($this->elements['cnonce'])) { - throw new BadCredentialsException(sprintf('Missing mandatory digest value; received header "%s"', $this->header)); - } + if ('auth' === $this->elements['qop'] && !isset($this->elements['nc'], $this->elements['cnonce'])) { + throw new BadCredentialsException(sprintf('Missing mandatory digest value; received header "%s"', $this->header)); } if ($expectedRealm !== $this->elements['realm']) { |