From a1a0fa2b5ab7dd60c90b6f07d6133e0024db5783 Mon Sep 17 00:00:00 2001 From: ehooo Date: Mon, 18 Mar 2019 09:57:30 +0100 Subject: [PATCH] Add base tag on HTML reports - Fix issue #215 --- bandit/formatters/html.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bandit/formatters/html.py b/bandit/formatters/html.py index e2fe78ac..81c3a0c5 100644 --- a/bandit/formatters/html.py +++ b/bandit/formatters/html.py @@ -153,6 +153,8 @@ from __future__ import absolute_import import logging +import os +import string import sys import six @@ -190,7 +192,7 @@ def report(manager, fileobj, sev_level, conf_level, lines=-1): Bandit Report - +$base_html