upgrade of web directory parsing for things like C:/xampp/htdocs/sqlmap/mysql/get_int.php (XAMPP uses this)

This commit is contained in:
Miroslav Stampar
2010-02-03 15:06:41 +00:00
parent 87c8bdbc29
commit 25f1a9c7d0
2 changed files with 4 additions and 3 deletions

View File

@@ -235,7 +235,7 @@ def getDocRoot():
absFilePath = normalizePath(absFilePath)
absFilePathWin = None
if re.match("[A-Za-z]:(\\[\w.\\]*)?", absFilePath):
if re.match("[A-Za-z]:([\\/][\w.\\/]*)?", absFilePath):
absFilePathWin = absFilePath
absFilePath = absFilePath[2:].replace("\\", "/")