Ticket #802: SC_Utils.php.patch

File SC_Utils.php.patch, 676 bytes (added by nanasess, 14 years ago)
  • data/class/util/SC_Utils.php

    a b  
    115115        } else { 
    116116            $proto = "http://"; 
    117117        } 
    118         $host = $proto . $_SERVER['SERVER_NAME']; 
     118        $host = $proto . $_SERVER['SERVER_NAME'] . ":" . $_SERVER['SERVER_PORT']; 
    119119        if ($path == '/') { 
    120120            return $host . $path . $installer; 
    121121        } 
     
    159159        } 
    160160 
    161161        $path = join('/', $results); 
    162         return $parse['scheme'] . '://' . $parse['host'] . '/' . $path; 
     162        return $parse['scheme'] . '://' . $parse['host'] . ":" . $parse['port'] .'/' . $path; 
    163163    } 
    164164 
    165165    // 装飾付きエラーメッセージの表示