mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Minor patch for #1260
This commit is contained in:
@@ -1007,6 +1007,14 @@ def sanitizeStr(value):
|
||||
|
||||
return getUnicode(value).replace("\n", " ").replace("\r", "")
|
||||
|
||||
def getHeader(headers, key):
|
||||
retVal = None
|
||||
for _ in (headers or {}):
|
||||
if _.upper() == key.upper():
|
||||
retVal = headers[_]
|
||||
break
|
||||
return retVal
|
||||
|
||||
def checkFile(filename):
|
||||
"""
|
||||
Checks for file existence and readability
|
||||
|
||||
Reference in New Issue
Block a user