]> git.ipfire.org Git - suricata-reporter.git/commitdiff
generator: Remove double slash from file://
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 9 Mar 2026 11:42:56 +0000 (11:42 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 9 Mar 2026 11:42:56 +0000 (11:42 +0000)
"file:" expects a filename after the colon and is not being treated like
"https://" would be. Without this change, opening files in the current
working directory was not possible.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/suricata-report-generator.in

index 6bbe7cbb95ca8049822c31ffdf9b6a2820f29acf..e4b4db948713a7df1be58362f71ebaf4e2869e35 100644 (file)
@@ -76,7 +76,7 @@ class ReportGenerator(object):
                self.path = path
 
                # Open the database
-               self.db = sqlite3.connect("file://%s?mode=ro" % path, uri=True)
+               self.db = sqlite3.connect("file:%s?mode=ro" % path, uri=True)
                self.db.row_factory = row_factory
 
                # Load a default stylesheet for our document