Skip to content

Commit deb524a

Browse files
dnmvissermikaelfrykholm
authored andcommitted
fix 276
1 parent d511f30 commit deb524a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pyff/parse.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from typing import Any, Dict, List, Optional
55

66
from pydantic import BaseModel, Field
7+
from urllib.parse import quote as urlescape
78
from xmlsec.crypto import CertDict
89

910
from pyff.constants import NS
@@ -84,7 +85,7 @@ def parse(self, resource: Resource, content: str) -> ParserInfo:
8485
n = 0
8586
for fn in find_matching_files(content, self.extensions):
8687
child_opts = resource.opts.copy(update={'alias': None})
87-
resource.add_child("file://" + fn, child_opts)
88+
resource.add_child("file://" + urlescape(fn), child_opts)
8889
n += 1
8990

9091
if n == 0:

0 commit comments

Comments
 (0)