mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-29 16:19:58 +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,11 +105,10 @@ 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;
|
||||||
|
if(_u1.pathname[0] != "/") targetUrl += "/";
|
||||||
targetUrl += _u1.pathname;
|
targetUrl += _u1.pathname;
|
||||||
targetUrl = targetUrl.replace(/\/$/,'');
|
targetUrl = targetUrl.replace(/\/$/,'');
|
||||||
this.xml_path = targetUrl + '/index.php';
|
this.xml_path = targetUrl + '/index.php';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue