Skip to content

Commit

Permalink
Few tweaks to disable encryption logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 9, 2015
1 parent ad8a241 commit 28a5f58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Illuminate/Cookie/Middleware/EncryptCookies.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function handle($request, Closure $next)
protected function decrypt(Request $request)
{
foreach ($request->cookies as $key => $c) {
if ($this->isDisabled($key)) {
if (static::isDisabled($key)) {
continue;
}

Expand Down Expand Up @@ -121,7 +121,7 @@ protected function decryptArray(array $cookie)
protected function encrypt(Response $response)
{
foreach ($response->headers->getCookies() as $key => $cookie) {
if ($this->isDisabled($key)) {
if (static::isDisabled($key)) {
continue;
}

Expand Down Expand Up @@ -151,10 +151,10 @@ protected function duplicate(Cookie $c, $value)
/**
* Determine whether encryption has been disabled for the given cookie.
*
* @param string $name
* @param string $name
* @return bool
*/
protected function isDisabled($name)
public static function isDisabled($name)
{
return in_array($name, static::$disabled);
}
Expand Down

0 comments on commit 28a5f58

Please sign in to comment.