fix bug regarding SSL cookies.
This commit is contained in:
parent
bf886f3271
commit
3e00ce2efb
2
artisan
2
artisan
|
@ -3,7 +3,7 @@
|
||||||
* Laravel - A PHP Framework For Web Artisans
|
* Laravel - A PHP Framework For Web Artisans
|
||||||
*
|
*
|
||||||
* @package Laravel
|
* @package Laravel
|
||||||
* @version 3.1.4
|
* @version 3.1.5
|
||||||
* @author Taylor Otwell <taylorotwell@gmail.com>
|
* @author Taylor Otwell <taylorotwell@gmail.com>
|
||||||
* @link http://laravel.com
|
* @link http://laravel.com
|
||||||
*/
|
*/
|
||||||
|
|
12
changes.md
12
changes.md
|
@ -2,6 +2,8 @@ ## Laravel Change Log
|
||||||
|
|
||||||
## Contents
|
## Contents
|
||||||
|
|
||||||
|
- [Laravel 3.1.5](#3.1.5)
|
||||||
|
- [Upgrading From 3.1.4](#upgrade-3.1.5)
|
||||||
- [Laravel 3.1.4](#3.1.4)
|
- [Laravel 3.1.4](#3.1.4)
|
||||||
- [Upgrading From 3.1.3](#upgrade-3.1.4)
|
- [Upgrading From 3.1.3](#upgrade-3.1.4)
|
||||||
- [Laravel 3.1.3](#3.1.3)
|
- [Laravel 3.1.3](#3.1.3)
|
||||||
|
@ -13,6 +15,16 @@ ## Contents
|
||||||
- [Laravel 3.1](#3.1)
|
- [Laravel 3.1](#3.1)
|
||||||
- [Upgrading From 3.0](#upgrade-3.1)
|
- [Upgrading From 3.0](#upgrade-3.1)
|
||||||
|
|
||||||
|
<a name="3.1.5"></a>
|
||||||
|
## Laravel 3.1.5
|
||||||
|
|
||||||
|
- Fixes bug that could allow secure cookies to be sent over HTTP.
|
||||||
|
|
||||||
|
<a name="upgrade-3.1.5"></a>
|
||||||
|
## Upgrading From 3.1.4
|
||||||
|
|
||||||
|
- Replace the **laravel** folder.
|
||||||
|
|
||||||
<a name="3.1.4"></a>
|
<a name="3.1.4"></a>
|
||||||
## Laravel 3.1.4
|
## Laravel 3.1.4
|
||||||
|
|
||||||
|
|
|
@ -63,6 +63,14 @@ protected static function set($cookie)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// We don't want to send secure cookies over HTTP unless the developer has
|
||||||
|
// turned off the "SSL" application configuration option, which is used
|
||||||
|
// while developing the application but should be true in production.
|
||||||
|
if ($secure and ! Request::secure() and Config::get('application.ssl'))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
setcookie($name, $value, $time, $path, $domain, $secure);
|
setcookie($name, $value, $time, $path, $domain, $secure);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Laravel - A PHP Framework For Web Artisans
|
* Laravel - A PHP Framework For Web Artisans
|
||||||
*
|
*
|
||||||
* @package Laravel
|
* @package Laravel
|
||||||
* @version 3.1.4
|
* @version 3.1.5
|
||||||
* @author Taylor Otwell <taylorotwell@gmail.com>
|
* @author Taylor Otwell <taylorotwell@gmail.com>
|
||||||
* @link http://laravel.com
|
* @link http://laravel.com
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* Laravel - A PHP Framework For Web Artisans
|
* Laravel - A PHP Framework For Web Artisans
|
||||||
*
|
*
|
||||||
* @package Laravel
|
* @package Laravel
|
||||||
* @version 3.1.4
|
* @version 3.1.5
|
||||||
* @author Taylor Otwell <taylorotwell@gmail.com>
|
* @author Taylor Otwell <taylorotwell@gmail.com>
|
||||||
* @link http://laravel.com
|
* @link http://laravel.com
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue