Skip to content

Commit 1840b0e

Browse files
committed
fix for a bug reported by k1971@live.co.uk (OperationalError: unknown database dbo)
1 parent 1e6c2fe commit 1840b0e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/core/replication.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
See the file 'doc/COPYING' for copying permission
88
"""
99

10+
from lib.core.common import unsafeSQLIdentificatorNaming
1011
from lib.core.convert import safechardecode
1112
from lib.core.exception import sqlmapMissingDependence
1213
from lib.core.exception import sqlmapValueException
@@ -51,7 +52,7 @@ class Table:
5152

5253
def __init__(self, parent, name, columns=None, create=True, typeless=False):
5354
self.parent = parent
54-
self.name = name
55+
self.name = unsafeSQLIdentificatorNaming(name)
5556
self.columns = columns
5657
if create:
5758
self.parent.cursor.execute('DROP TABLE IF EXISTS %s' % self.name)

0 commit comments

Comments
 (0)