Commit: d1db6579332952d64199c479deffd711c33ef86a

Author: James Logsdon | Date: 2010-04-17 14:45:24 -0700
When using nginx with the `try_files` configuration the request url has a leading forward-slash, breaking the asset filter. This change trims off any leading slashes and corrects the issue.
diff --git a/config/bootstrap.php b/config/bootstrap.php index 15a380b..d9c20ff 100644 --- a/config/bootstrap.php +++ b/config/bootstrap.php @@ -15,7 +15,7 @@ use \lithium\core\Libraries; use \lithium\net\http\Media; Dispatcher::applyFilter('_callable', function($self, $params, $chain) { - list($plugin, $asset) = explode('/', $params['request']->url, 2) + array("", ""); + list($plugin, $asset) = explode('/', ltrim($params['request']->url, '/'), 2) + array("", ""); if ($asset && $library = Libraries::get($plugin)) { $asset = "{$library['path']}/webroot/{$asset}"; @@ -31,4 +31,4 @@ Dispatcher::applyFilter('_callable', function($self, $params, $chain) { return $chain->next($self, $params, $chain); }); -?> \ No newline at end of file +?>