Commit:    b5f9af79fa982b55bf73d915a4e95636593d2e0a
Author:    Hannes Magnusson <[email protected]>         Wed, 18 Dec 2013 
11:35:19 -0800
Parents:   14c7b07c47c7913bf84bb6684f973f2689aa4633
Branches:  master

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

Log:
Logic++

Changed paths:
  M  include/site.inc


Diff:
diff --git a/include/site.inc b/include/site.inc
index 6533a63..11421eb 100644
--- a/include/site.inc
+++ b/include/site.inc
@@ -495,9 +495,9 @@ function get_shortname($page) {
 // the name of the Apache vhost.
 
 if (!isset($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] != "on") {
-    $proto = "https";
-} else {
     $proto = "http";
+} else {
+    $proto = "https";
 }
 
 if($_SERVER["SERVER_PORT"] != '80' || $_SERVER["SERVER_PORT"] != 443) {


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to