From 1840b0e43bb20c3e7775abee3bd4c42afd44da0e Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 3 May 2011 10:22:38 +0000 Subject: [PATCH] fix for a bug reported by k1971@live.co.uk (OperationalError: unknown database dbo) --- lib/core/replication.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/replication.py b/lib/core/replication.py index 527284c59..42f65a457 100644 --- a/lib/core/replication.py +++ b/lib/core/replication.py @@ -7,6 +7,7 @@ Copyright (c) 2006-2011 sqlmap developers (http://sqlmap.sourceforge.net/) See the file 'doc/COPYING' for copying permission """ +from lib.core.common import unsafeSQLIdentificatorNaming from lib.core.convert import safechardecode from lib.core.exception import sqlmapMissingDependence from lib.core.exception import sqlmapValueException @@ -51,7 +52,7 @@ class Replication: def __init__(self, parent, name, columns=None, create=True, typeless=False): self.parent = parent - self.name = name + self.name = unsafeSQLIdentificatorNaming(name) self.columns = columns if create: self.parent.cursor.execute('DROP TABLE IF EXISTS %s' % self.name)