Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8b0d31a

Browse files
committed
fix for cases where both posix and nt path versions of windows paths are in parsed web page
1 parent 894b9f0 commit 8b0d31a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/request/basic.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ def parseResponse(page, headers):
8181
for match in reobj.finditer(page):
8282
absFilePath = match.group("result").strip()
8383
page = page.replace(absFilePath, "")
84+
if re.search("\A[A-Za-z]:", absFilePath):
85+
absFilePath = absFilePath.replace("/", "\\")
8486
if absFilePath not in kb.absFilePaths:
8587
dirname = directoryPath(absFilePath)
8688
kb.absFilePaths.add(dirname)

0 commit comments

Comments
 (0)