From 42100e0e5b4816d4329dc4bdbe37fed08dfc03ac Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 30 May 2011 23:15:29 +0000 Subject: [PATCH] big bug fix --- lib/techniques/brute/use.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/techniques/brute/use.py b/lib/techniques/brute/use.py index 0f196de85..08134a947 100644 --- a/lib/techniques/brute/use.py +++ b/lib/techniques/brute/use.py @@ -68,7 +68,7 @@ def tableExists(tableFile, regex=None): count[0] += 1 tbllock.release() - if conf.db and not conf.db.endswith(METADB_SUFFIX): + if conf.db and METADB_SUFFIX not in conf.db: fullTableName = "%s%s%s" % (conf.db, '..' if Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.SYBASE) else '.', table) else: fullTableName = table @@ -178,7 +178,7 @@ def columnExists(columnFile, regex=None): columns = getFileItems(columnFile, unique=True) columns = filterListValue(columns, regex) - if conf.db and not conf.db.endswith(METADB_SUFFIX): + if conf.db and METADB_SUFFIX not in conf.db: table = "%s%s%s" % (conf.db, '..' if Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.SYBASE) else '.', conf.tbl) else: table = conf.tbl