Commit f0ba22fe authored by Robert Ricci's avatar Robert Ricci

In order to get the auth cookies, pages need to go through https. But,

the user may have visited the last page with http. If they did, send them
back through https
parent 4a5a7278
......@@ -28,6 +28,11 @@ $referrer = $_POST['referrer'];
if (isset($_GET['refer']) && $_GET['refer'] &&
isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] != "") {
$referrer = $_SERVER['HTTP_REFERER'];
# In order to get the auth cookies, pages need to go through https. But,
# the user may have visited the last page with http. If they did, send them
# back through https
$referrer = preg_replace("/^http:/i","https:",$referrer);
}
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment