diff --git a/artisan b/artisan index cc35412d..4e82030a 100644 --- a/artisan +++ b/artisan @@ -3,7 +3,7 @@ * Laravel - A PHP Framework For Web Artisans * * @package Laravel - * @version 3.1.8 + * @version 3.1.9 * @author Taylor Otwell * @link http://laravel.com */ diff --git a/laravel/documentation/changes.md b/laravel/documentation/changes.md index b3d7ac85..ae7a57a3 100644 --- a/laravel/documentation/changes.md +++ b/laravel/documentation/changes.md @@ -2,8 +2,13 @@ # Laravel Change Log ## Contents +<<<<<<< HEAD:laravel/documentation/changes.md - [Laravel 3.2](#3.2) - [Upgrading From 3.1](#upgrade-3.2) +======= +- [Laravel 3.1.9](#3.1.9) +- [Upgrading From 3.1.8](#upgrade-3.1.9) +>>>>>>> master:changes.md - [Laravel 3.1.8](#3.1.8) - [Upgrading From 3.1.7](#upgrade-3.1.8) - [Laravel 3.1.7](#3.1.7) @@ -62,6 +67,16 @@ ## Upgrading From 3.1 - Replace the **laravel** folder. + +## Laravel 3.1.9 + +- Fixes cookie session driver bug that caused infinite loop on some occasions. + + +## Upgrading From 3.1.8 + +- Replace the **laravel** folder. + ## Laravel 3.1.8 diff --git a/laravel/html.php b/laravel/html.php index be83fc03..709c63fb 100644 --- a/laravel/html.php +++ b/laravel/html.php @@ -62,7 +62,7 @@ public static function decode($value) */ public static function script($url, $attributes = array()) { - $url = static::entities(URL::to_asset($url)); + $url = urlencode(URL::to_asset($url)); return ''.PHP_EOL; } @@ -90,7 +90,7 @@ public static function style($url, $attributes = array()) $attributes = $attributes + $defaults; - $url = static::entities(URL::to_asset($url)); + $url = urlencode(URL::to_asset($url)); return ''.PHP_EOL; } @@ -126,7 +126,7 @@ public static function span($value, $attributes = array()) */ public static function link($url, $title, $attributes = array(), $https = false) { - $url = static::entities(URL::to($url, $https)); + $url = urlencode(URL::to($url, $https)); return ''.static::entities($title).''; } @@ -157,7 +157,7 @@ public static function link_to_secure($url, $title, $attributes = array()) */ public static function link_to_asset($url, $title, $attributes = array(), $https = null) { - $url = static::entities(URL::to_asset($url, $https)); + $url = urlencode(URL::to_asset($url, $https)); return ''.static::entities($title).''; } @@ -267,7 +267,7 @@ public static function image($url, $alt = '', $attributes = array()) { $attributes['alt'] = $alt; - return ''; + return ''; } /** diff --git a/laravel/session/drivers/driver.php b/laravel/session/drivers/driver.php index 59c01e82..8a54ac98 100644 --- a/laravel/session/drivers/driver.php +++ b/laravel/session/drivers/driver.php @@ -55,6 +55,14 @@ public function id() { $session = array(); + // If the driver is an instance of the Cookie driver, we are able to + // just return any string since the Cookie driver has no real idea + // of a server side persisted session with an ID. + if ($this instanceof Cookie) + { + return Str::random(40); + } + // We'll containue generating random IDs until we find an ID that is // not currently assigned to a session. This is almost definitely // going to happen on the first iteration. diff --git a/paths.php b/paths.php index 8860160b..9c47d422 100644 --- a/paths.php +++ b/paths.php @@ -3,7 +3,7 @@ * Laravel - A PHP Framework For Web Artisans * * @package Laravel - * @version 3.1.8 + * @version 3.1.9 * @author Taylor Otwell * @link http://laravel.com */ diff --git a/public/index.php b/public/index.php index 2826b9bc..34375579 100644 --- a/public/index.php +++ b/public/index.php @@ -3,7 +3,7 @@ * Laravel - A PHP Framework For Web Artisans * * @package Laravel - * @version 3.1.8 + * @version 3.1.9 * @author Taylor Otwell * @link http://laravel.com */