Skip to content
Snippets Groups Projects
Commit 60d61f59 authored by Francois Marier's avatar Francois Marier
Browse files

fixupAbsolutePath: filter out scheme-relative URLs

The current check to ensure that only absolute paths are accepted
fails to take into account scheme-relative URLs like "//foo.com".

These URLs end up in fixupURL and get the origin prepended to them
to something like "https://origin.example.com//foo.com", which is
invalid but still follows our same-origin restrictions.

So the solution is to require that the character after the leading
slash be anything but a slash.
parent 3f3dfba1
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment