The filterOk() method id Slash::Utility::Access has a
questionable Perl construct that can lead to
hard-to-trace bugs in certain areas. Declaring a
lexical variable with a following if construct tends to
reuse the existing allocated memory when the boolean is
false. This means that the values of previous filters
can bleed through.
Predeclaring the variables or using the ternary
conditional operator fixes this. I've opted for the
Log in to post a comment.