Skip to content

Issue with size filter like "100x100>" #16

Description

@spongeben

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions