There's an issue when using this kind of params directly in Twig like {{ "image.jpg" | imresize("100x100>") }}
With the actual code it results with a sh: 1: cannot create /image.jpg error.
(no problem if the resize param is set in config file)
The problem is with the > (or <) which leads to errors in the creation of the cache directory.
I made a quickfix by updating the pathify() method in Manager.php and using it more in the same file, but I don't know if it's the best way to do it...
Maybe someone with a better knowledge of this bundle can tell me if it's the right way.
(I can make a PR if required)
There's an issue when using this kind of params directly in Twig like
{{ "image.jpg" | imresize("100x100>") }}With the actual code it results with a
sh: 1: cannot create /image.jpgerror.(no problem if the resize param is set in config file)
The problem is with the
>(or<) which leads to errors in the creation of the cache directory.I made a quickfix by updating the
pathify()method in Manager.php and using it more in the same file, but I don't know if it's the best way to do it...Maybe someone with a better knowledge of this bundle can tell me if it's the right way.
(I can make a PR if required)