Closed (duplicate)
Project:
Webform
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2007 at 17:06 UTC
Updated:
22 Jan 2008 at 03:10 UTC
When running an https-only site, links in notification e-mails are broken due to the static use of "http" when the url is generated.
In webform.inc, line 202:
$message .= "http://".$_SERVER['HTTP_HOST'].$baseurl.url('node/'.$node->nid,"sid=".$sid);
Could be something more like:
$proto = $_SERVER['HTTPS'] ? 'https://' : 'http://';
$message .= $proto . $_SERVER['HTTP_HOST'] . $baseurl . url('node/' . $node->nid,"sid=" . $sid);
Thanks,
Nate
Comments
Comment #1
quicksketchThanks, this bug was corrected in this issue: http://drupal.org/node/203972.