]> git.joonet.de Git - adminer.git/commitdiff
Change protocol to HTTPS
authorJakub Vrana <jakub@vrana.cz>
Tue, 8 Sep 2015 18:41:29 +0000 (11:41 -0700)
committerJakub Vrana <jakub@vrana.cz>
Tue, 8 Sep 2015 18:41:29 +0000 (11:41 -0700)
adminer/include/functions.inc.php
adminer/static/functions.js

index e528abe15654b23b053e06400294b9cf0003d4b4..b1e03891c96e2fa7bdc4803429d2ff16860d481f 100644 (file)
@@ -1137,7 +1137,7 @@ function select_value($val, $link, $field, $text_length) {
                if ($protocol = is_url($val)) {
                        $link = (($protocol == "http" && $HTTPS) || preg_match('~WebKit~i', $_SERVER["HTTP_USER_AGENT"]) // WebKit supports noreferrer since 2009
                                ? $val // HTTP links from HTTPS pages don't receive Referer automatically
-                               : "$protocol://www.adminer.org/redirect/?url=" . urlencode($val) // intermediate page to hide Referer
+                               : "https://www.adminer.org/redirect/?url=" . urlencode($val) // intermediate page to hide Referer
                        );
                }
        }
index 2cce663a021b64cb54a4231c10429eb9b77b894a..f7c048d1b379b657aeb3a1f10cf32f624243d1ef 100644 (file)
@@ -37,7 +37,7 @@ function cookie(assign, days) {
 function verifyVersion(current) {
        cookie('adminer_version=0', 1);
        var iframe = document.createElement('iframe');
-       iframe.src = location.protocol + '//www.adminer.org/version/?current=' + current;
+       iframe.src = 'https://www.adminer.org/version/?current=' + current;
        iframe.frameBorder = 0;
        iframe.marginHeight = 0;
        iframe.scrolling = 'no';
@@ -46,7 +46,7 @@ function verifyVersion(current) {
        if (window.postMessage && window.addEventListener) {
                iframe.style.display = 'none';
                addEventListener('message', function (event) {
-                       if (event.origin == location.protocol + '//www.adminer.org') {
+                       if (event.origin == 'https://www.adminer.org') {
                                var match = /version=(.+)/.exec(event.data);
                                if (match) {
                                        cookie('adminer_version=' + match[1], 1);