Commit a0fda4af authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(ids) fix for https://github.com/opnsense/core/issues/1516

(cherry picked from commit 5f17abb3)
parent 868c48a0
......@@ -170,6 +170,7 @@ class RuleCache(object):
os.remove(self.cachefile)
db = sqlite3.connect(self.cachefile)
db.text_factory = lambda x: unicode(x, 'utf-8', 'ignore')
cur = db.cursor()
cur.execute("create table stats (timestamp number, files number)")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment