| Name |
Last commit
|
Last update |
|---|---|---|
| application | ||
| bundles | ||
| laravel | ||
| public | ||
| storage | ||
| .gitattributes | ||
| .gitignore | ||
| .travis.yml | ||
| CONTRIBUTING.md | ||
| artisan | ||
| license.txt | ||
| paths.php | ||
| readme.md |
Most SLL-related code in Laravel checks to see if `application.ssl`
is true before doing an action requiring it. `Cookie::put()` is the
only exception that I've found, to date, that doesn't test for SSL.
This checks to see that the SSL is enabled when attempting to set a
secure cookie.
To verify, set `application.ssl` to false (without this patch) then
run:
Cookie::put('foo', 'bar', 0, '/', null, true);
You will get an exception because of line 90 in `cookie.php`:
if ($secure and ! Request::secure())
{
throw new \Exception("Attempting to set secure cookie over HTTP.");
}
With this patch you will not get this error unless both `application.ssl`
is true, and the cookie `$secure` flag is set.
| Name |
Last commit
|
Last update |
|---|---|---|
| application | Loading commit data... | |
| bundles | Loading commit data... | |
| laravel | Loading commit data... | |
| public | Loading commit data... | |
| storage | Loading commit data... | |
| .gitattributes | Loading commit data... | |
| .gitignore | Loading commit data... | |
| .travis.yml | Loading commit data... | |
| CONTRIBUTING.md | Loading commit data... | |
| artisan | Loading commit data... | |
| license.txt | Loading commit data... | |
| paths.php | Loading commit data... | |
| readme.md | Loading commit data... |