Browse Source

fix of the vhost problem

teepe 23 năm trước cách đây
mục cha
commit
40dc91f563
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      functions/strings.php

+ 4 - 0
functions/strings.php

@@ -300,7 +300,11 @@ function get_location () {
         $host = $HTTP_HOST;
         $host = $HTTP_HOST;
     } else if (isset($SERVER_NAME) && !empty($SERVER_NAME)) {
     } else if (isset($SERVER_NAME) && !empty($SERVER_NAME)) {
         $host = $SERVER_NAME;
         $host = $SERVER_NAME;
+    } else if (isset($HTTP_SERVER_VARS['SERVER_NAME']) &&
+               !empty($HTTP_SERVER_VARS['SERVER_NAME'])) {
+        $host = $HTTP_SERVER_VARS['SERVER_NAME'];
     }
     }
+
     
     
     $port = '';
     $port = '';
     if (! strstr($host, ':')) {
     if (! strstr($host, ':')) {