Skip to content

Commit

Permalink
bug: Update pdf configuration parameters (intel#1459)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyharrison committed Dec 28, 2021
1 parent 38598df commit a5d679b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cve_bin_tool/output_engine/pdfbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from datetime import datetime

from reportlab import rl_config
from reportlab.graphics.shapes import Drawing, Rect, String
from reportlab.lib import colors
from reportlab.lib.styles import ParagraphStyle as PS
Expand Down Expand Up @@ -169,6 +170,9 @@ def __init__(self, includeTOC=True):
self.table_data = []
self.note_data = []
self.table_validation = None
# Set default configuration parameters
rl_config.trustedHosts = ["localhost", "127.0.0.1"]
rl_config.trustedSchemes = ["http", "https"]

def _spacer(self):
self.contents.append(self.spacer)
Expand Down

0 comments on commit a5d679b

Please sign in to comment.