From 8b0d31a6b7c60703370b5bf7a7f4e7871ea419ed Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 3 Feb 2010 15:34:20 +0000 Subject: [PATCH] fix for cases where both posix and nt path versions of windows paths are in parsed web page --- lib/request/basic.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/request/basic.py b/lib/request/basic.py index e96a29d7c..2bb923aae 100644 --- a/lib/request/basic.py +++ b/lib/request/basic.py @@ -81,6 +81,8 @@ def parseResponse(page, headers): for match in reobj.finditer(page): absFilePath = match.group("result").strip() page = page.replace(absFilePath, "") + if re.search("\A[A-Za-z]:", absFilePath): + absFilePath = absFilePath.replace("/", "\\") if absFilePath not in kb.absFilePaths: dirname = directoryPath(absFilePath) kb.absFilePaths.add(dirname)