diff --git a/plugins/dbms/mssqlserver/connector.py b/plugins/dbms/mssqlserver/connector.py index dd260eda4..2147ea019 100644 --- a/plugins/dbms/mssqlserver/connector.py +++ b/plugins/dbms/mssqlserver/connector.py @@ -51,7 +51,7 @@ class Connector(GenericConnector): try: return self.cursor.fetchall() except (pymssql.ProgrammingError, pymssql.OperationalError, _mssql.MssqlDatabaseException), msg: - logger.warn("(remote) %s" % msg) + logger.warn("(remote) %s" % str(msg).replace("\n", " ")) return None def execute(self, query): @@ -61,7 +61,7 @@ class Connector(GenericConnector): self.cursor.execute(utf8encode(query)) retVal = True except (pymssql.OperationalError, pymssql.ProgrammingError), msg: - logger.warn("(remote) %s" % msg) + logger.warn("(remote) %s" % str(msg).replace("\n", " ")) except pymssql.InternalError, msg: raise sqlmapConnectionException, msg