summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastiaan Stok <s.stok@rollerscapes.net>2012-11-15 16:54:04 +0100
committerSebastiaan Stok <s.stok@rollerscapes.net>2012-11-15 16:54:04 +0100
commitcc1f4e8659464d10fecd34f442c6509b76219010 (patch)
treea5e24dba198166037cc3c032d1c356f78a52840e
parent66b591b312f9073b7e0d20eaf38ab3d48653043c (diff)
downloadsymfony-security-cc1f4e8659464d10fecd34f442c6509b76219010.zip
symfony-security-cc1f4e8659464d10fecd34f442c6509b76219010.tar.gz
symfony-security-cc1f4e8659464d10fecd34f442c6509b76219010.tar.bz2
[Security] remove escape charters from username provided by Digest DigestAuthenticationListenerv2.0.19
-rw-r--r--Http/Firewall/DigestAuthenticationListener.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Http/Firewall/DigestAuthenticationListener.php b/Http/Firewall/DigestAuthenticationListener.php
index b679f4d..2bc4aa5 100644
--- a/Http/Firewall/DigestAuthenticationListener.php
+++ b/Http/Firewall/DigestAuthenticationListener.php
@@ -157,7 +157,7 @@ class DigestData
public function getUsername()
{
- return $this->elements['username'];
+ return strtr($this->elements['username'], array("\\\"" => "\"", "\\\\" => "\\"));
}
public function validateAndDecode($entryPointKey, $expectedRealm)