Potential bug fix (escaping formatted regular expressions)

This commit is contained in:
Miroslav Stampar
2014-10-28 14:02:55 +01:00
parent 268e774087
commit 3b3b8d4ef2
6 changed files with 15 additions and 15 deletions

View File

@@ -147,7 +147,7 @@ class Entries:
for column in colList:
_ = agent.preprocessField(tbl, column)
if _ != column:
colString = re.sub(r"\b%s\b" % column, _, colString)
colString = re.sub(r"\b%s\b" % re.escape(column), _, colString)
entriesCount = 0