kopia lustrzana https://github.com/iv-org/invidious
Strip leading slashes from referers
rodzic
96234e509f
commit
29a21860ae
|
@ -184,6 +184,7 @@ def get_referer(env, fallback = "/")
|
|||
end
|
||||
|
||||
referer = referer.full_path
|
||||
referer = "/" + referer.lstrip("\/\\")
|
||||
|
||||
if referer == env.request.path
|
||||
referer = fallback
|
||||
|
|
Ładowanie…
Reference in New Issue