Explorar o código

Don't forward iframes through QUICK_IMAGES, leaking Wayback to the clients

RichardG867 %!s(int64=5) %!d(string=hai) anos
pai
achega
f62cb20ed9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      waybackproxy.py

+ 1 - 1
waybackproxy.py

@@ -65,7 +65,7 @@ class Handler(socketserver.BaseRequestHandler):
 				pac += b'''\r\n'''
 				pac += b'''function FindProxyForURL(url, host)\r\n'''
 				pac += b'''{\r\n'''
-				pac += b'''	if (shExpMatch(url, "http://web.archive.org/web/*"))\r\n'''
+				pac += b'''	if (shExpMatch(url, "http://web.archive.org/web/*") && !shExpMatch(url, "http://web.archive.org/web/??????????????if_/*"))\r\n'''
 				pac += b'''	{\r\n'''
 				pac += b'''		return "DIRECT";\r\n'''
 				pac += b'''	}\r\n'''