ソースを参照

Make all comparisons case insensitive for forwarded protocol in get_location()

pdontthink 18 年 前
コミット
c39eb5a9a8
1 ファイル変更1 行追加1 行削除
  1. 1 1
      functions/strings.php

+ 1 - 1
functions/strings.php

@@ -523,7 +523,7 @@ function get_location () {
         if (sqgetGlobalVar('SERVER_PORT', $server_port, SQ_SERVER)) {
             if (($server_port != 80 && $proto == 'http://') ||
                 ($server_port != 443 && $proto == 'https://' &&
-                 $forwarded_proto != 'https')) {
+                 strcasecmp($forwarded_proto, 'https') !== 0)) {
                 $port = sprintf(':%d', $server_port);
             }
         }