Skip to content

Commit

Permalink
Fixed issue #05189: IE Non-Secure Warnings on HTTPS survey
Browse files Browse the repository at this point in the history
Dev Fix switch for API link when using HTTPS

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_dev@10731 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Tony Partner committed Aug 15, 2011
1 parent f62a7da commit 53f3d82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qanda.php
Expand Up @@ -5101,7 +5101,7 @@ function textLimit(field, maxlen) {
class=\"mapservice\" value = \"{$qidattributes['location_mapservice']}\" >
<div id=\"gmap_canvas_$ia[1]_c\" style=\"width: {$qidattributes['location_mapwidth']}px; height: {$qidattributes['location_mapheight']}px\"></div>";

if ($qidattributes['location_mapservice']==1 && $_SERVER['HTTPS'] == "on")
if ($qidattributes['location_mapservice']==1 && !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != "off")
$js_header_includes[] = "https://maps.googleapis.com/maps/api/js?sensor=false";
else if ($qidattributes['location_mapservice']==1)
$js_header_includes[] = "http://maps.googleapis.com/maps/api/js?sensor=false";
Expand Down

0 comments on commit 53f3d82

Please sign in to comment.