From a0805f27015748638a5fb05fd55b746852c53362 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 15 Jun 2011 17:35:48 +0200 Subject: html_unescape function, little plugin improvements --- module/network/HTTPRequest.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'module/network') diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py index f90048f4d..7904070e8 100644 --- a/module/network/HTTPRequest.py +++ b/module/network/HTTPRequest.py @@ -24,6 +24,7 @@ from urllib import quote, urlencode from logging import getLogger from cStringIO import StringIO +from module.utils import html_unescape from module.plugins.Plugin import Abort def myquote(url): @@ -228,6 +229,8 @@ class HTTPRequest(): #self.log.debug("Decoded %s" % encoding ) decoder = getincrementaldecoder(encoding)("replace") rep = decoder.decode(rep, True) + + #TODO: html_unescape as default except LookupError: self.log.debug("No Decoder foung for %s" % encoding) -- cgit v1.2.3