mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
(ids) fix for https://github.com/opnsense/core/issues/1516
This commit is contained in:
parent
83488b6710
commit
5f17abb3fa
@ -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)")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user