From: gggeek Date: Wed, 4 Mar 2020 09:58:47 +0000 (+0000) Subject: try better sending of cookies with spaces in their value X-Git-Tag: plcapi-7.1-0~3^2~172 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=3d9f7fd067faa468f0eb41c8c724ae3de3472cee;p=plcapi.git try better sending of cookies with spaces in their value --- diff --git a/src/Client.php b/src/Client.php index 4f2a61a..3d29093 100644 --- a/src/Client.php +++ b/src/Client.php @@ -395,7 +395,7 @@ class Client */ public function setCookie($name, $value = '', $path = '', $domain = '', $port = null) { - $this->cookies[$name]['value'] = urlencode($value); + $this->cookies[$name]['value'] = rawurlencode($value); if ($path || $domain || $port) { $this->cookies[$name]['path'] = $path; $this->cookies[$name]['domain'] = $domain;