Skip to content

It's safer to test exact behavior key, not subpattern.. #8

@annibale-x

Description

@annibale-x

Hello,
at line 121 of Merge.pm it could be safer to test exact key match, not subpatterns.

Right way: my @behaviors = grep { /^$value$/i } keys %{$self->{'behaviors'}};
Possible collisions: my @behaviors = grep { /$value/i } keys %{$self->{'behaviors'}};

Hope this help
Hannibal

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