Browse Source

Cookies should be % encoded, not + encoded.

Mark Story 9 years ago
parent
commit
83e4bed168
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Http/Cookie/Cookie.php

+ 1 - 1
src/Http/Cookie/Cookie.php

@@ -185,7 +185,7 @@ class Cookie implements CookieInterface
         if ($this->isExpanded) {
             $value = $this->_flatten($this->value);
         }
-        $headerValue[] = sprintf('%s=%s', $this->name, urlencode($value));
+        $headerValue[] = sprintf('%s=%s', $this->name, rawurlencode($value));
 
         if ($this->expiresAt) {
             $headerValue[] = sprintf('expires=%s', $this->getFormattedExpires());