Skip to content

Commit aca3716

Browse files
committed
Namespace: explicit parsing errors
This PR requires the parser to throw an error if a (percent-encoded) solidus `/` is encountered in any path segment. Signed-off-by: Piotr P. Karwasz <[email protected]>
1 parent 337a4ed commit aca3716

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

PURL-SPECIFICATION.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ To parse a ``purl`` string in its components:
415415
- Discard any empty segment from that split
416416
- Percent-decode each segment
417417
- UTF-8-decode each segment if needed in your programming language
418+
- Signal an error if any segment contains a solidus `/`
418419
- Apply type-specific normalization to each segment if needed
419420
- Join segments back with a '/'
420421
- This is the ``namespace``

0 commit comments

Comments
 (0)