Fixes #1204, Automatic proxy code gets stuck in a loop
This commit is contained in:
parent
3d615f2b9c
commit
6a9b372e66
1 changed files with 11 additions and 1 deletions
|
@ -130,7 +130,17 @@ Zotero.Proxies = new function() {
|
|||
|
||||
if(webNav) {
|
||||
var proxied = this.properToProxy(url, true);
|
||||
if(proxied) webNav.loadURI(proxied, 0, channel.URI, null, null);
|
||||
if(proxied) {
|
||||
channel.QueryInterface(Components.interfaces.nsIHttpChannel);
|
||||
// If the referrer is a proxiable host, we already have access
|
||||
// (e.g., we're on-campus) and shouldn't redirect
|
||||
if (channel.referrer) {
|
||||
if (this.properToProxy(channel.referrer.spec, true)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
webNav.loadURI(proxied, 0, channel.URI, null, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue