diff options
| author | Greg Roach <fisharebest@gmail.com> | 2017-08-07 14:52:16 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2017-08-07 14:52:16 +0100 |
| commit | 127249db2ef45296227a020125f0a49eceabf51e (patch) | |
| tree | 61d2bc10f9de03c0d9c90bcb3fb31e93cd13f78d /vendor/symfony/http-foundation/Cookie.php | |
| parent | 49b31b5a5eb721b207ad10abadb824c89284fc94 (diff) | |
| download | webtrees-127249db2ef45296227a020125f0a49eceabf51e.tar.gz webtrees-127249db2ef45296227a020125f0a49eceabf51e.tar.bz2 webtrees-127249db2ef45296227a020125f0a49eceabf51e.zip | |
Update vendor dependencies
Diffstat (limited to 'vendor/symfony/http-foundation/Cookie.php')
| -rw-r--r-- | vendor/symfony/http-foundation/Cookie.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/symfony/http-foundation/Cookie.php b/vendor/symfony/http-foundation/Cookie.php index 4d709c0e91..a2139ff6ba 100644 --- a/vendor/symfony/http-foundation/Cookie.php +++ b/vendor/symfony/http-foundation/Cookie.php @@ -126,6 +126,10 @@ class Cookie $this->httpOnly = (bool) $httpOnly; $this->raw = (bool) $raw; + if (null !== $sameSite) { + $sameSite = strtolower($sameSite); + } + if (!in_array($sameSite, array(self::SAMESITE_LAX, self::SAMESITE_STRICT, null), true)) { throw new \InvalidArgumentException('The "sameSite" parameter value is not valid.'); } |
