mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-06 16:32:23 +01:00
minor change
This commit is contained in:
parent
2a07af2294
commit
9c014c0fd0
1 changed files with 6 additions and 6 deletions
|
|
@ -853,18 +853,18 @@ def urlEncodeCookieValues(cookieStr):
|
|||
|
||||
def directoryPath(path):
|
||||
retVal = None
|
||||
if path.find('/') != -1:
|
||||
retVal = posixpath.dirname(path)
|
||||
else:
|
||||
if isWindowsPath(path):
|
||||
retVal = ntpath.dirname(path)
|
||||
else:
|
||||
retVal = posixpath.dirname(path)
|
||||
return retVal
|
||||
|
||||
def normalizePath(path):
|
||||
retVal = None
|
||||
if path.find('/') != -1:
|
||||
retVal = posixpath.normpath(path)
|
||||
else:
|
||||
if isWindowsPath(path):
|
||||
retVal = ntpath.normpath(path)
|
||||
else:
|
||||
retVal = posixpath.normpath(path)
|
||||
return retVal
|
||||
|
||||
def safeStringFormat(formatStr, params):
|
||||
|
|
|
|||
Loading…
Reference in a new issue