Skip to content

Setting cookie from cookie does not need to be sanitized #2019

Open

Description

e.g. when resetting/increasing lifetime of a cookie

setcookie( $cookie, $_COOKIE[ $cookie ], time() + 86400, '/' )
setcookie( 'hello', $_COOKIE[ $cookie ], time() + 86400, '/' )

currently gives an error for WordPress.Security.ValidatedSanitizedInput

EDIT: use case: safari ITP HTTP cookie handling for JS cookies.

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

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