mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
minor change
This commit is contained in:
parent
2a07af2294
commit
9c014c0fd0
|
@ -853,18 +853,18 @@ def urlEncodeCookieValues(cookieStr):
|
||||||
|
|
||||||
def directoryPath(path):
|
def directoryPath(path):
|
||||||
retVal = None
|
retVal = None
|
||||||
if path.find('/') != -1:
|
if isWindowsPath(path):
|
||||||
retVal = posixpath.dirname(path)
|
|
||||||
else:
|
|
||||||
retVal = ntpath.dirname(path)
|
retVal = ntpath.dirname(path)
|
||||||
|
else:
|
||||||
|
retVal = posixpath.dirname(path)
|
||||||
return retVal
|
return retVal
|
||||||
|
|
||||||
def normalizePath(path):
|
def normalizePath(path):
|
||||||
retVal = None
|
retVal = None
|
||||||
if path.find('/') != -1:
|
if isWindowsPath(path):
|
||||||
retVal = posixpath.normpath(path)
|
|
||||||
else:
|
|
||||||
retVal = ntpath.normpath(path)
|
retVal = ntpath.normpath(path)
|
||||||
|
else:
|
||||||
|
retVal = posixpath.normpath(path)
|
||||||
return retVal
|
return retVal
|
||||||
|
|
||||||
def safeStringFormat(formatStr, params):
|
def safeStringFormat(formatStr, params):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user