Always redirect to referer for '/subscription_ajax'

This commit is contained in:
Omar Roth 2018-08-05 12:43:54 -05:00
parent 1e7873d8e9
commit 61f9e8667c

View File

@ -1033,7 +1033,7 @@ get "/subscription_ajax" do |env|
if match
session_token = match["session_token"]
else
next env.redirect "/"
next env.redirect referer
end
headers["content-type"] = "application/x-www-form-urlencoded"