Files
ponzi/laravel
Robert K 785e168f5e Check application.ssl when setting a secure cookie
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.
2013-04-03 12:13:21 -03:00
..
2013-04-02 11:09:40 +02:00
2012-09-28 10:10:35 +02:00
2012-05-02 16:52:55 -05:00
2012-07-27 11:29:59 +00:00
2012-12-26 13:47:36 +10:00
2012-06-13 11:19:20 -04:00
2013-01-06 14:01:18 -06:00
2013-03-28 15:50:25 -05:00
2012-10-05 14:38:13 +03:00
2012-08-03 18:17:48 +03:00
2012-10-22 10:09:53 +12:00
2012-03-23 22:54:09 -05:00
2012-02-23 14:02:59 -06:00
2012-11-05 09:28:48 +01:00
2013-03-28 15:35:09 -05:00
2013-04-02 11:09:40 +02:00
2012-05-30 08:41:03 -05:00
2013-01-05 14:55:04 -06:00
2013-02-07 03:35:42 +01:00
2013-02-27 08:54:57 +08:00
2012-04-10 11:37:38 -05:00
2012-06-13 11:19:20 -04:00
2013-01-05 16:15:18 -06:00
2013-01-06 20:14:07 +00:00
2012-11-06 15:04:13 -06:00