From bfcd22f5ef837f9bb263fb2a7967ea2cb037b325 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 13 Jun 2011 21:58:34 +0000 Subject: [PATCH] luci-0.10: merge r7144 --- themes/base/htdocs/luci-static/resources/xhr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/base/htdocs/luci-static/resources/xhr.js b/themes/base/htdocs/luci-static/resources/xhr.js index a146fa8a1..096a04484 100644 --- a/themes/base/htdocs/luci-static/resources/xhr.js +++ b/themes/base/htdocs/luci-static/resources/xhr.js @@ -43,7 +43,7 @@ XHR = function() var xhr = this._xmlHttp; var code = this._encode( data ); - url = location.protocol + '//' + location.hostname + + url = location.protocol + '//' + (location.host || location.hostname) + ( location.port ? ':' + location.port : '' ) + url; if( code ) -- 2.25.1