Skip to content

Commit a5d679b

Browse files
bug: Update pdf configuration parameters (#1459)
1 parent 38598df commit a5d679b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cve_bin_tool/output_engine/pdfbuilder.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from datetime import datetime
55

6+
from reportlab import rl_config
67
from reportlab.graphics.shapes import Drawing, Rect, String
78
from reportlab.lib import colors
89
from reportlab.lib.styles import ParagraphStyle as PS
@@ -169,6 +170,9 @@ def __init__(self, includeTOC=True):
169170
self.table_data = []
170171
self.note_data = []
171172
self.table_validation = None
173+
# Set default configuration parameters
174+
rl_config.trustedHosts = ["localhost", "127.0.0.1"]
175+
rl_config.trustedSchemes = ["http", "https"]
172176

173177
def _spacer(self):
174178
self.contents.append(self.spacer)

0 commit comments

Comments
 (0)