Open
Description
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:
- https://developer.wordpress.org/reference/functions/add_magic_quotes/
- https://www.php.net/manual/en/function.array-keys.php
Opinions ?