mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Strip leading slashes from referers
This commit is contained in:
parent
96234e509f
commit
29a21860ae
1 changed files with 1 additions and 0 deletions
|
@ -184,6 +184,7 @@ def get_referer(env, fallback = "/")
|
||||||
end
|
end
|
||||||
|
|
||||||
referer = referer.full_path
|
referer = referer.full_path
|
||||||
|
referer = "/" + referer.lstrip("\/\\")
|
||||||
|
|
||||||
if referer == env.request.path
|
if referer == env.request.path
|
||||||
referer = fallback
|
referer = fallback
|
||||||
|
|
Loading…
Reference in a new issue