From 23723de8aa2d97cbf939628bfc9caab5f8f204c2 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sun, 18 May 2008 11:33:25 +0000 Subject: [PATCH] Fix for www servers on nonstandard ports --- js/JsHttpRequest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) { -- 2.30.2