Skip to main content

safe_next

Function safe_next 

Source
pub fn safe_next(s: &str) -> Option<String>
Expand description

A same-origin path to go to after sign-in: starts with one /, no backslash, no whitespace or control characters. Never an absolute URL or a protocol-relative //host.