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