mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Reverted
This commit is contained in:
@@ -310,7 +310,7 @@ def getDirs(webApi=None):
|
|||||||
if absFilePath:
|
if absFilePath:
|
||||||
directory = directoryPath(absFilePath)
|
directory = directoryPath(absFilePath)
|
||||||
if isWindowsPath(directory):
|
if isWindowsPath(directory):
|
||||||
ntToPosixSlashes(directory)
|
directory = ntToPosixSlashes(directory)
|
||||||
if directory == '/':
|
if directory == '/':
|
||||||
continue
|
continue
|
||||||
directories.add(directory)
|
directories.add(directory)
|
||||||
@@ -980,10 +980,12 @@ def urlEncodeCookieValues(cookieStr):
|
|||||||
|
|
||||||
def directoryPath(path):
|
def directoryPath(path):
|
||||||
retVal = None
|
retVal = None
|
||||||
if isWindowsDriveLetterPath(path):
|
|
||||||
|
if isWindowsPath(path):
|
||||||
retVal = ntpath.dirname(path)
|
retVal = ntpath.dirname(path)
|
||||||
else:
|
else:
|
||||||
retVal = posixpath.dirname(path)
|
retVal = posixpath.dirname(path)
|
||||||
|
|
||||||
return retVal
|
return retVal
|
||||||
|
|
||||||
def normalizePath(path):
|
def normalizePath(path):
|
||||||
@@ -992,7 +994,8 @@ def normalizePath(path):
|
|||||||
and ntToPosixSlashes()
|
and ntToPosixSlashes()
|
||||||
"""
|
"""
|
||||||
retVal = None
|
retVal = None
|
||||||
if isWindowsDriveLetterPath(path):
|
|
||||||
|
if isWindowsPath(path):
|
||||||
retVal = ntpath.normpath(path)
|
retVal = ntpath.normpath(path)
|
||||||
else:
|
else:
|
||||||
retVal = posixpath.normpath(path)
|
retVal = posixpath.normpath(path)
|
||||||
|
|||||||
Reference in New Issue
Block a user