minor update

This commit is contained in:
Miroslav Stampar 2010-08-31 14:31:17 +00:00
parent c4040ab297
commit b0ba559af5

View File

@ -26,6 +26,7 @@ import re
from lib.core.agent import agent from lib.core.agent import agent
from lib.core.common import getRange from lib.core.common import getRange
from lib.core.common import getCompiledRegex
from lib.core.common import getUnicode from lib.core.common import getUnicode
from lib.core.common import parsePasswordHash from lib.core.common import parsePasswordHash
from lib.core.common import readInput from lib.core.common import readInput
@ -881,7 +882,7 @@ class Enumeration:
columns = {} columns = {}
if kb.dbms == "SQLite": if kb.dbms == "SQLite":
for match in re.finditer(r"(\w+) ([A-Z]+)[,\r\n]", value): for match in re.finditer(getCompiledRegex(r"(\w+) ([A-Z]+)[,\r\n]"), value):
columns[match.group(1)] = match.group(2) columns[match.group(1)] = match.group(2)
else: else:
for column, colType in value: for column, colType in value: