From: Janusz Dobrowolski Date: Sun, 18 May 2008 11:33:25 +0000 (+0000) Subject: Fix for www servers on nonstandard ports X-Git-Tag: v2.4.2~19^2~2061 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=23723de8aa2d97cbf939628bfc9caab5f8f204c2;hp=bcbf5c697db09a36994f391b5fe568d269145c68;p=fa-stable.git Fix for www servers on nonstandard ports --- diff --git a/js/JsHttpRequest.js b/js/JsHttpRequest.js index 3ec48fd3..d89ff4b2 100644 --- a/js/JsHttpRequest.js +++ b/js/JsHttpRequest.js @@ -457,7 +457,7 @@ JsHttpRequest.LOADERS.xml = { loader: function(req) { if (this.queryElem.length) return ['xml_no_form_upl']; // XMLHttpRequest (and MS ActiveX'es) cannot work with different domains. - if (this.url.match(new RegExp('^([a-z]+://[^\\/]+)(.*)', 'i'))) { + if (this.url.match(new RegExp('^([a-z]+://[^\\/]+)(.*)((:[0-9]*)+)', 'i'))) { // We MUST also check if protocols matched: cannot send from HTTP // to HTTPS and vice versa. if (RegExp.$1.toLowerCase() != document.location.protocol + '//' + document.location.hostname.toLowerCase()) {