You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(html): percent-encode unsafe characters in symbol page paths
Symbol names that come from string literals (e.g. `obj["a/b"]` or a
property named `'"><img src=x onerror=alert(1)>'`) can contain characters
that are reserved on common filesystems (Windows forbids `<>:"/\|?*`) or
that have special meaning in a URL. Such a name was used verbatim as the
file-name component of the generated page, producing an invalid path that
crashed `deno doc --html` on Windows, and an unescaped link that could 404
or inject markup into the surrounding attribute.
Percent-encode the unsafe characters when building both the written file
name and every link to it, so they stay consistent. Ordinary identifier
names are unaffected (the encoder borrows without allocating).
0 commit comments