Skip to content

Commit c671acb

Browse files
committed
Minor patch of normalizePath()
1 parent cdd0e6f commit c671acb

File tree

3 files changed

+331
-329
lines changed

3 files changed

+331
-329
lines changed

lib/core/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1727,14 +1727,14 @@ def normalizePath(filepath):
17271727
Returns normalized string representation of a given filepath
17281728
17291729
>>> normalizePath('//var///log/apache.log')
1730-
'//var/log/apache.log'
1730+
'/var/log/apache.log'
17311731
"""
17321732

17331733
retVal = filepath
17341734

17351735
if retVal:
17361736
retVal = retVal.strip("\r\n")
1737-
retVal = ntpath.normpath(retVal) if isWindowsDriveLetterPath(retVal) else posixpath.normpath(retVal)
1737+
retVal = ntpath.normpath(retVal) if isWindowsDriveLetterPath(retVal) else re.sub(r"\A/{2,}", "/", posixpath.normpath(retVal))
17381738

17391739
return retVal
17401740

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.1.10.9"
22+
VERSION = "1.1.11.0"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

0 commit comments

Comments
 (0)