Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/peppol_py/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def validate_peppol_document(
# only works with XSLT 1.0, and the Schematron is written in XSLT
# 2.0
with PySaxonProcessor(license=False) as proc:
# Prevent XXE: disallow access to any type of URL
proc.set_configuration_property("http://saxon.sf.net/feature/allowedProtocols", "")
for validation_xsl_file in schematron_xsls:
if not os.path.exists(validation_xsl_file):
# Resolve internal files
Expand Down