#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:
haneul 2009-10-12 10:04:37 +00:00
parent a4a8c5afed
commit 62af563fc8

View file

@ -105,12 +105,11 @@ function xml_handlerRequest(callBackFunc, xmlObj, callBackFunc2, response_tags,
if(typeof(https_port)!='undefined' && https_port != 443) port = https_port; if(typeof(https_port)!='undefined' && https_port != 443) port = https_port;
var _u1 = xCreateElement('a'); var _u1 = xCreateElement('a');
_u1.href = url; _u1.href = url;
var targetUrl = ''; var targetUrl = 'https://';
if(port == 443) targetUrl = 'https://'; targetUrl += _u1.hostname.replace(/:([0-9]+)$/,'');
else targetUrl = 'http://';
targetUrl += _u1.hostname;
if(port != 443) targetUrl += ':'+port; if(port != 443) targetUrl += ':'+port;
targetUrl += _u1.pathname; if(_u1.pathname[0] != "/") targetUrl += "/";
targetUrl += _u1.pathname;
targetUrl = targetUrl.replace(/\/$/,''); targetUrl = targetUrl.replace(/\/$/,'');
this.xml_path = targetUrl + '/index.php'; this.xml_path = targetUrl + '/index.php';
} }