mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Fix for an Issue #323
This commit is contained in:
parent
832567ecf6
commit
a77b7f00d9
3 changed files with 4 additions and 10 deletions
|
|
@ -5,7 +5,6 @@ Copyright (c) 2006-2012 sqlmap developers (http://sqlmap.org/)
|
|||
See the file 'doc/COPYING' for copying permission
|
||||
"""
|
||||
|
||||
import codecs
|
||||
import os
|
||||
|
||||
from lib.core.agent import agent
|
||||
|
|
@ -25,7 +24,6 @@ from lib.core.enums import CHARSET_TYPE
|
|||
from lib.core.enums import EXPECTED
|
||||
from lib.core.enums import PAYLOAD
|
||||
from lib.core.exception import SqlmapUndefinedMethod
|
||||
from lib.core.settings import UNICODE_ENCODING
|
||||
from lib.request import inject
|
||||
|
||||
class Filesystem:
|
||||
|
|
@ -113,7 +111,7 @@ class Filesystem:
|
|||
"""
|
||||
|
||||
retVal = []
|
||||
with codecs.open(fileName, "rb", UNICODE_ENCODING) as f:
|
||||
with open(fileName, "rb") as f:
|
||||
content = f.read().encode(encoding).replace("\n", "")
|
||||
|
||||
if not single:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue