mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 07:35:55 +08:00
Resolve #1308
This commit is contained in:
parent
09e3c7bec6
commit
9bb2399e47
|
@ -300,7 +300,7 @@ abstract class AbstractConfig implements \ArrayAccess, \JsonSerializable
|
|||
break;
|
||||
case 'string':
|
||||
default:
|
||||
$sValue = '"'.\str_replace('"', '\\"', $mParamValue[0]).'"';
|
||||
$sValue = '"'.\addcslashes($mParamValue[0], '\\"').'"';
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -126,7 +126,7 @@ class Socket extends \SnappyMail\HTTP\Request
|
|||
$digest = \md5($a1 . ':' . $challenge['nonce'] . ':' . $nc . ':' . $challenge['cnonce'] . ':auth:' . $a2);
|
||||
}
|
||||
$extra_headers['Authorization'] = "Authorization: Digest "
|
||||
. ' username="' . \str_replace(array('\\', '"'), array('\\\\', '\\"'), $this->auth['user']) . '",'
|
||||
. ' username="' . \addcslashes($this->auth['user'], '\\"') . '",'
|
||||
. ' realm="' . $challenge['realm'] . '",'
|
||||
. ' nonce="' . $challenge['nonce'] . '",'
|
||||
. ' uri="' . $request_url . '",'
|
||||
|
|
Loading…
Reference in a new issue