mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-27 04:05:58 +00:00
Patch for an Issue #1016
This commit is contained in:
parent
785e3d0317
commit
bb4ac41ff7
2 changed files with 4 additions and 3 deletions
|
|
@ -2849,13 +2849,13 @@ def showHttpErrorCodes():
|
|||
msg += "could mean that some kind of protection is involved (e.g. WAF)"
|
||||
logger.warn(msg)
|
||||
|
||||
def openFile(filename, mode='r', encoding=UNICODE_ENCODING, errors="replace"):
|
||||
def openFile(filename, mode='r', encoding=UNICODE_ENCODING, errors="replace", buffering=1):
|
||||
"""
|
||||
Returns file handle of a given filename
|
||||
"""
|
||||
|
||||
try:
|
||||
return codecs.open(filename, mode, encoding, errors)
|
||||
return codecs.open(filename, mode, encoding, errors, buffering)
|
||||
except IOError:
|
||||
errMsg = "there has been a file opening error for filename '%s'. " % filename
|
||||
errMsg += "Please check %s permissions on a file " % ("write" if \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue