Commaaa2
This commit is contained in:
25
vendor/laravel/framework/src/Illuminate/Cookie/CookieJar.php
vendored
Normal file → Executable file
25
vendor/laravel/framework/src/Illuminate/Cookie/CookieJar.php
vendored
Normal file → Executable file
@@ -153,6 +153,19 @@ class CookieJar implements JarContract
|
||||
$this->queued[$cookie->getName()][$cookie->getPath()] = $cookie;
|
||||
}
|
||||
|
||||
/**
|
||||
* Queue a cookie to expire with the next response.
|
||||
*
|
||||
* @param string $name
|
||||
* @param string|null $path
|
||||
* @param string|null $domain
|
||||
* @return void
|
||||
*/
|
||||
public function expire($name, $path = null, $domain = null)
|
||||
{
|
||||
$this->queue($this->forget($name, $path, $domain));
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove a cookie from the queue.
|
||||
*
|
||||
@@ -214,4 +227,16 @@ class CookieJar implements JarContract
|
||||
{
|
||||
return Arr::flatten($this->queued);
|
||||
}
|
||||
|
||||
/**
|
||||
* Flush the cookies which have been queued for the next request.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function flushQueuedCookies()
|
||||
{
|
||||
$this->queued = [];
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
0
vendor/laravel/framework/src/Illuminate/Cookie/CookieServiceProvider.php
vendored
Normal file → Executable file
0
vendor/laravel/framework/src/Illuminate/Cookie/CookieServiceProvider.php
vendored
Normal file → Executable file
@@ -76,7 +76,7 @@ class EncryptCookies
|
||||
protected function decrypt(Request $request)
|
||||
{
|
||||
foreach ($request->cookies as $key => $cookie) {
|
||||
if ($this->isDisabled($key)) {
|
||||
if ($this->isDisabled($key) || is_array($cookie)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
14
vendor/laravel/framework/src/Illuminate/Cookie/composer.json
vendored
Normal file → Executable file
14
vendor/laravel/framework/src/Illuminate/Cookie/composer.json
vendored
Normal file → Executable file
@@ -14,11 +14,13 @@
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": "^7.2.5|^8.0",
|
||||
"illuminate/contracts": "^7.0",
|
||||
"illuminate/support": "^7.0",
|
||||
"symfony/http-foundation": "^5.0",
|
||||
"symfony/http-kernel": "^5.0"
|
||||
"php": "^7.3|^8.0",
|
||||
"illuminate/collections": "^8.0",
|
||||
"illuminate/contracts": "^8.0",
|
||||
"illuminate/macroable": "^8.0",
|
||||
"illuminate/support": "^8.0",
|
||||
"symfony/http-foundation": "^5.4",
|
||||
"symfony/http-kernel": "^5.4"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
@@ -27,7 +29,7 @@
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "7.x-dev"
|
||||
"dev-master": "8.x-dev"
|
||||
}
|
||||
},
|
||||
"config": {
|
||||
|
||||
Reference in New Issue
Block a user