Fix mis-recognition of GMU EZProxy under some circumstances

This commit is contained in:
Simon Kornblith 2008-07-28 21:24:29 +00:00
parent 09e8249db8
commit ce210afe2d

View file

@ -489,7 +489,7 @@ Zotero.Proxies.Detectors.EZProxy = function(channel) {
var newURI = ioService.newURI(newURL, null, null);
if(!newURI) return false;
if(channel.URI.host == newURI.host && channel.URI.port != newURI.port) {
if(channel.URI.host == newURI.host && [channel.URI.port, 80, 443, -1].indexOf(newURI.port) == -1) {
// Old style per-port
var proxy = new Zotero.Proxy();
proxy.multiHost = false;