From: Jo-Philipp Wich Date: Mon, 13 Jun 2011 21:58:34 +0000 (+0000) Subject: luci-0.10: merge r7144 X-Git-Tag: 0.10.0~125 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bfcd22f5ef837f9bb263fb2a7967ea2cb037b325;p=oweals%2Fluci.git luci-0.10: merge r7144 --- 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 )