mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
Minor fix
This commit is contained in:
parent
4e8b41b869
commit
0f581ccb6c
|
@ -214,7 +214,7 @@ class Web:
|
|||
uploaded = False
|
||||
directory = ntToPosixSlashes(normalizePath(directory))
|
||||
|
||||
if not isWindowsDriveLetterPath(directory) and directory[0] != '/':
|
||||
if not isWindowsDriveLetterPath(directory) and not directory.startswith('/'):
|
||||
directory = "/%s" % directory
|
||||
else:
|
||||
directory = directory[2:] if isWindowsDriveLetterPath(directory) else directory
|
||||
|
|
Loading…
Reference in New Issue
Block a user