mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 13:03:50 +03:00
fix
This commit is contained in:
parent
0913d700a8
commit
d95a8850c8
|
@ -249,6 +249,10 @@ def getDocRoot(webApi=None):
|
||||||
index = absFilePath.index(pagePath)
|
index = absFilePath.index(pagePath)
|
||||||
docRoot = absFilePath[:index]
|
docRoot = absFilePath[:index]
|
||||||
|
|
||||||
|
if len(docRoot) == 0:
|
||||||
|
docRoot = None
|
||||||
|
continue
|
||||||
|
|
||||||
if absFilePathWin:
|
if absFilePathWin:
|
||||||
docRoot = "C:/%s" % ntToPosixSlashes(docRoot)
|
docRoot = "C:/%s" % ntToPosixSlashes(docRoot)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user