Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 752aed2

Browse files
committed
Patch for #3815
1 parent e10a966 commit 752aed2

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3549,7 +3549,7 @@ def openFile(filename, mode='r', encoding=UNICODE_ENCODING, errors="reversible",
35493549
except IOError:
35503550
errMsg = "there has been a file opening error for filename '%s'. " % filename
35513551
errMsg += "Please check %s permissions on a file " % ("write" if mode and ('w' in mode or 'a' in mode or '+' in mode) else "read")
3552-
errMsg += "and that it's not locked by another process."
3552+
errMsg += "and that it's not locked by another process"
35533553
raise SqlmapSystemException(errMsg)
35543554

35553555
def decodeIntToUnicode(value):

lib/core/dump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ def dbTableValues(self, tableValues):
617617
warnMsg = "writing binary ('%s') content to file '%s' " % (mimetype, filepath)
618618
logger.warn(warnMsg)
619619

620-
with open(filepath, "wb") as f:
620+
with openFile(filepath, "w+b", None) as f:
621621
_ = safechardecode(value, True)
622622
f.write(_)
623623

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.7.14"
21+
VERSION = "1.3.7.15"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
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)