barryvdh / elfinder-flysystem-driver

elFinder driver for Flysystem
183 stars 41 forks source link

Glide thumb URL exposes base directory #77

Open djozsef opened 4 years ago

djozsef commented 4 years ago

Problem Current Glide assisted thumb generation feature exposes the path information of image files.

Explanation Let's say:

This driver generates a url for thumb generation that contains the base path: http://localhost:8080/product-thumbs/var/data/product-images/featured/112/main-image.jpg?ts=1582391716&w=48&h=48&fit=crop ...

The problem is, that the base path information (var/data/product-images) is exposed in the generated thumb URL. ElFinder does not expose this information in URL's (eg. for downloading without the connector).

Solution The driver should strip the base path from the URL and base path should be set during Glide server configuration.