Fixed getBaseUrl() in common/util.php.

Because HTTP_HOST With PORT information, so if the port is not 80 or 433, url is not correct.