mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-06 16:32:23 +01:00
fix for a bug reported by k1971@live.co.uk (OperationalError: unknown database dbo)
This commit is contained in:
parent
1e6c2fea74
commit
1840b0e43b
1 changed files with 2 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ Copyright (c) 2006-2011 sqlmap developers (http://sqlmap.sourceforge.net/)
|
||||||
See the file 'doc/COPYING' for copying permission
|
See the file 'doc/COPYING' for copying permission
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from lib.core.common import unsafeSQLIdentificatorNaming
|
||||||
from lib.core.convert import safechardecode
|
from lib.core.convert import safechardecode
|
||||||
from lib.core.exception import sqlmapMissingDependence
|
from lib.core.exception import sqlmapMissingDependence
|
||||||
from lib.core.exception import sqlmapValueException
|
from lib.core.exception import sqlmapValueException
|
||||||
|
|
@ -51,7 +52,7 @@ class Replication:
|
||||||
|
|
||||||
def __init__(self, parent, name, columns=None, create=True, typeless=False):
|
def __init__(self, parent, name, columns=None, create=True, typeless=False):
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
self.name = name
|
self.name = unsafeSQLIdentificatorNaming(name)
|
||||||
self.columns = columns
|
self.columns = columns
|
||||||
if create:
|
if create:
|
||||||
self.parent.cursor.execute('DROP TABLE IF EXISTS %s' % self.name)
|
self.parent.cursor.execute('DROP TABLE IF EXISTS %s' % self.name)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue