From c398353e06f5a88130da9f01a1db00e4488a40a9 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 9 Jun 2010 16:07:47 +0000 Subject: [PATCH] support for loading 'faulty character set' session files --- lib/core/target.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/target.py b/lib/core/target.py index b8a6386e9..686f58b06 100644 --- a/lib/core/target.py +++ b/lib/core/target.py @@ -123,7 +123,7 @@ def __setOutputResume(): if os.path.exists(conf.sessionFile): if not conf.flushSession: - readSessionFP = codecs.open(conf.sessionFile, "r", conf.dataEncoding) + readSessionFP = codecs.open(conf.sessionFile, "r", conf.dataEncoding, 'replace') __url_cache = set() __expression_cache = {}