Skip to content

ValidatedSanitizedInput: allow use of array_keys() without sanitization/unslashing ? #1672

Open
@jrfnl

Description

@jrfnl

Open question: should using array_keys() on superglobals be allowed without sanitization ?

I'm pretty sure we shouldn't demand unslashing when that function is used as WP doesn't actually slash the array keys, but the sniff currently throws both a "missing unslash" as well as a "missing sanitization" error.

Refs:

Opinions ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions