projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcbf5c6
)
Fix for www servers on nonstandard ports
author
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Sun, 18 May 2008 11:33:25 +0000
(11:33 +0000)
committer
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Sun, 18 May 2008 11:33:25 +0000
(11:33 +0000)
js/JsHttpRequest.js
patch
|
blob
|
history
diff --git
a/js/JsHttpRequest.js
b/js/JsHttpRequest.js
index 3ec48fd3328e35c2fc22bf4055d0e9adc9ea6a2a..d89ff4b2ce756a056af255d7826ba9ce903df857 100644
(file)
--- 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()) {