Skip to content

Commit

Permalink
Update Cookie.php
Browse files Browse the repository at this point in the history
Fix issue delight-im#29
  • Loading branch information
Empornium authored May 25, 2022
1 parent a87055f commit 70ccbf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ public static function buildCookieHeader($name, $value = null, $expiryTime = 0,
$maxAgeStr = self::formatMaxAge($expiryTime, $forceShowExpiry);
$expiryTimeStr = self::formatExpiryTime($expiryTime, $forceShowExpiry);

$headerStr = self::HEADER_PREFIX . $name . '=' . \urlencode($value);
$headerStr = self::HEADER_PREFIX . $name . '=' . \rawurlencode($value);

if (!\is_null($expiryTimeStr)) {
$headerStr .= '; expires=' . $expiryTimeStr;
Expand Down

0 comments on commit 70ccbf8

Please sign in to comment.