summaryrefslogtreecommitdiffhomepage
path: root/themes/base/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-06-13 21:57:58 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-06-13 21:57:58 +0000
commita0d62ab9bf0770649ac06ebfaee87e50d249e9af (patch)
tree461b4ffe006ce56bcfed82aefdaa3f34a80c100e /themes/base/htdocs/luci-static/resources
parent5221623290797f0134f168491893962e80cc59dd (diff)
themes/base: use location.host, fallback to location.hostname in xhr.js, fixes AJAX with numeric IPv6 access
Diffstat (limited to 'themes/base/htdocs/luci-static/resources')
-rw-r--r--themes/base/htdocs/luci-static/resources/xhr.js2
1 files changed, 1 insertions, 1 deletions
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 )