Skip to content

ESI src URLs are not HTML decoded #287

@timkelty

Description

@timkelty

If you have something like:

<esi:include src="/foo?bar&amp;baz" />

The value is not decoded before passing to new URL(), which will result in an incorrect URL.
https://github.com/cdloh/cloudflare-esi/blob/main/src/processIncludes.ts#L95

In this case, &amp; needs to first be decoded to &.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions