-Fixed bug in App Cache Poison plugin, missing function call resulted in some websites not loading

-Added output to the AppCachePoison plugin
This commit is contained in:
byt3bl33d3r 2015-03-15 16:42:17 +01:00
commit 0c57f39671
5 changed files with 22 additions and 9 deletions

View file

@ -113,6 +113,7 @@ class ServerConnection(HTTPClient):
if (key.lower() == 'location'):
value = self.replaceSecureLinks(value)
self.urlMonitor.addRedirection(self.client.uri, value)
if (key.lower() == 'content-type'):
if (value.find('image') != -1):

View file

@ -63,7 +63,9 @@ class URLMonitor:
if from_url in s:
s.add(to_url)
return
self.redirects.append(set([from_url,to_url]))
url_set = set([from_url, to_url])
logging.debug("[URLMonitor] Set redirection: %s" % url_set)
self.redirects.append(url_set)
def getRedirectionSet(self, url):
for s in self.redirects: