Skip to content

"Undefined array key 1" when given large single trim parameter #218

Description

@jordanade

This filename:
Hnr4t2QO4ugMstGTejDqUAkSyBXF2GlQozIjfs76-_x138-resize-trim(66218942676).png
generated this error:
Undefined array key 1
on this line:
line 109: list($x1, $y1, $x2, $y2) = $coords;
in this file:
/vendor/bkwld/croppa/src/Image.php

For these kinds of invalid or out-of-range inputs, can we return, say, 422 Unprocessable Entity?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions