Commit 3c32d757 authored by Loïc DAYOT's avatar Loïc DAYOT Committed by Ploc
Browse files

fix(): correct links in RSS subscribed in Firefox

Add protocol http or https in RSS content, depending on protocol when subscribing in Mozilla Firefox.

in relation with #42
parent 941b6a75
......@@ -44,6 +44,11 @@ function calendar_absolute_url($url='', $protocol='')
{
global $root;
$root = rtrim ($root, "/");
if ($protocol == '')
{
$protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') ? 'https:' : 'http:';
}
return $protocol . "//" . $root . "/" . $url;
}
......
Supports Markdown
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