diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-06-13 21:57:58 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-06-13 21:57:58 +0000 |
commit | a0d62ab9bf0770649ac06ebfaee87e50d249e9af (patch) | |
tree | 461b4ffe006ce56bcfed82aefdaa3f34a80c100e /themes/base/htdocs | |
parent | 5221623290797f0134f168491893962e80cc59dd (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')
-rw-r--r-- | themes/base/htdocs/luci-static/resources/xhr.js | 2 |
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 ) |