pub fn is_local_path(target: &str) -> boolExpand description
Whether a redirect target is a path on this site rather than another origin.
//evil.example is the one that catches people out: it has no scheme, looks
like a path, and a browser reads it as a protocol-relative URL to somebody
else’s host.