mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-23 05:09:56 +09:00
#18273822 : fixed bugs with non-default SSL port
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6851 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a4a8c5afed
commit
62af563fc8
1 changed files with 4 additions and 5 deletions
|
|
@ -105,12 +105,11 @@ function xml_handlerRequest(callBackFunc, xmlObj, callBackFunc2, response_tags,
|
|||
if(typeof(https_port)!='undefined' && https_port != 443) port = https_port;
|
||||
var _u1 = xCreateElement('a');
|
||||
_u1.href = url;
|
||||
var targetUrl = '';
|
||||
if(port == 443) targetUrl = 'https://';
|
||||
else targetUrl = 'http://';
|
||||
targetUrl += _u1.hostname;
|
||||
var targetUrl = 'https://';
|
||||
targetUrl += _u1.hostname.replace(/:([0-9]+)$/,'');
|
||||
if(port != 443) targetUrl += ':'+port;
|
||||
targetUrl += _u1.pathname;
|
||||
if(_u1.pathname[0] != "/") targetUrl += "/";
|
||||
targetUrl += _u1.pathname;
|
||||
targetUrl = targetUrl.replace(/\/$/,'');
|
||||
this.xml_path = targetUrl + '/index.php';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue