com web/php: Fixed bug #69352 (Support loading Google JSAPI over HTTPS): include/prepend.inc

[email protected] (Kalle Sommer Nielsen)
Newsgroups php.webmaster
Message-ID <[email protected]>
Commit:    2c73b63d0e217c22f2f998115c2a770e7217c7d7
Author:    Kalle Sommer Nielsen <[email protected]>         Thu, 2 Apr 2015 04:03:19 +0200
Parents:   424be3254ec9b4e5a505141c99272a7ca09462ad
Branches:  master

Link:       http://git.php.net/?p=web/php.git;a=commitdiff;h=2c73b63d0e217c22f2f998115c2a770e7217c7d7

Log:
Fixed bug #69352 (Support loading Google JSAPI over HTTPS)

Bugs:
https://bugs.php.net/69352

Changed paths:
  M  include/prepend.inc


Diff:
diff --git a/include/prepend.inc b/include/prepend.inc
index 3e50658..23ded65 100644
--- a/include/prepend.inc
+++ b/include/prepend.inc
@@ -210,7 +210,7 @@ function google_cse($default = '', $lang = 'en') {
   JavaScript and reload to continue.
 </noscript>
 <div id="cse" style="width: 100%;"></div>
-<script src="http://www.google.com/jsapi" type="text/javascript"></script>
+<script src="//www.google.com/jsapi" type="text/javascript"></script>
 <script type="text/javascript"> 
   document.getElementById("cse").innerHTML = "Loading...";
   google.load('search', '1', {language : '<?php echo $lang; ?>', style : google.loader.themes.MINIMALIST});
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.