Skip to content

Commit

Permalink
Fix code scanning alert no. 20: Jinja2 templating with autoescape=False
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
1 parent ad5a2b1 commit 5c810ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pds/registry/utils/treks/product_service_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from datetime import date

import requests
from jinja2 import Environment
from jinja2 import Environment, select_autoescape
from pds.registry.utils.treks import templates


Expand Down Expand Up @@ -60,7 +60,7 @@ def create_pds4_xml(self):
self.create_reference_list()

# create env
env = Environment()
env = Environment(autoescape=select_autoescape(['html', 'xml']))

# get template
with importlib.resources.open_text(templates, "product-service-template.xml") as io:
Expand Down

0 comments on commit 5c810ce

Please sign in to comment.