mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-26 07:49:23 -05:00
Always redirect to referer for '/subscription_ajax'
This commit is contained in:
parent
1e7873d8e9
commit
61f9e8667c
@ -1033,7 +1033,7 @@ get "/subscription_ajax" do |env|
|
|||||||
if match
|
if match
|
||||||
session_token = match["session_token"]
|
session_token = match["session_token"]
|
||||||
else
|
else
|
||||||
next env.redirect "/"
|
next env.redirect referer
|
||||||
end
|
end
|
||||||
|
|
||||||
headers["content-type"] = "application/x-www-form-urlencoded"
|
headers["content-type"] = "application/x-www-form-urlencoded"
|
||||||
|
Loading…
Reference in New Issue
Block a user