@@ -41,7 +41,7 @@ |
||
41 | 41 | // I needed to change decrypt(value, unserialize = false); |
42 | 42 | $value = app('encrypter')->decrypt($this->getCookie(), $this->serialize); |
43 | 43 | // This part is new since Laravel 7.22.0 (Improve cookie encryption) |
44 | - return strpos($value, sha1($this->key) . '|') !== 0 ? null : substr($value, 41); |
|
44 | + return strpos($value, sha1($this->key).'|') !== 0 ? null : substr($value, 41); |
|
45 | 45 | } catch (DecryptException $e) { |
46 | 46 | // Somehow the middleware for decrypting does not kick in here... |
47 | 47 | // but it even fails if we use php artisan <something> (weird) |
@@ -24,7 +24,7 @@ |
||
24 | 24 | // this could be a future bug |
25 | 25 | // when no middleware is active the language is not set right |
26 | 26 | // domain.com could be in german etc... |
27 | - if (! Config::beautify()) { |
|
27 | + if (!Config::beautify()) { |
|
28 | 28 | // if the middleware is active we should be redirected to en.domain.com |
29 | 29 | // if not the fallback language is going to be used |
30 | 30 | return Config::fallbackLocale(); |