diff options
author | Sebastiaan Stok <s.stok@rollerscapes.net> | 2012-11-15 16:54:04 +0100 |
---|---|---|
committer | Sebastiaan Stok <s.stok@rollerscapes.net> | 2012-11-15 16:54:04 +0100 |
commit | cc1f4e8659464d10fecd34f442c6509b76219010 (patch) | |
tree | a5e24dba198166037cc3c032d1c356f78a52840e | |
parent | 66b591b312f9073b7e0d20eaf38ab3d48653043c (diff) | |
download | symfony-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.php | 2 |
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) |