Skip to content

Wrong sanitised output for link  #254

Closed
@alex-alvarezg

Description

@alex-alvarezg

The following input

/test/?param1=valueOne&param2=valueTwo
will be sanitized to:

/test/?param1=valueOne¶m2=valueTwo
but should be sanitized to

/test/?param1=valueOne&param2=valueTwo

The following code is used:

    private final PolicyFactory URL_POLICY = new HtmlPolicyBuilder()
            .toFactory()
            .and(Sanitizers.LINKS);

URL_POLICY.sanitize("/test/?param1=valueOne&param2=valueTwo")

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