1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-29 16:50:07 +02:00

removed session cookies config setting in imagecache route

This commit is contained in:
Oliver Vogel
2015-03-18 18:41:04 +01:00
parent e58192bb1e
commit 8f3761154b

View File

@@ -83,10 +83,6 @@ class ImageServiceProviderLaravel5 extends ServiceProvider
$app['router']->get($config->get('imagecache.route').'/{template}/{filename}', array('as' => 'imagecache', function ($template, $filename) use ($app, $config) { $app['router']->get($config->get('imagecache.route').'/{template}/{filename}', array('as' => 'imagecache', function ($template, $filename) use ($app, $config) {
// disable session cookies for image route
$app['config']->set('session.driver', 'array');
// find file // find file
foreach ($config->get('imagecache.paths') as $path) { foreach ($config->get('imagecache.paths') as $path) {
// don't allow '..' in filenames // don't allow '..' in filenames