durian-hypermediaStyle

All fixtures · Hostile input (each one attack) · hostile/19-reference-names.dh.md

14 problem(s) parse() reported
Source
---
title: "Reference names that are refused"
---

# Reference names

[[svg:https://198.51.100.7/logo.svg "a URL"]]

[[svg://203.0.113.9/x.svg "a URL with no scheme"]]

[[svg:www.example.com "a host name"]]

[[chart:../../secrets "a path"]]

[[chart:folder/file "a path with a slash"]]

[[chart:.hidden "a dot first"]]

[[interactive:javascript:alert(1) "a scheme"]]

[[interactive:data:text/html,hi "data"]]

[[terminal:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa "a name of 135"]]

[[chart:naïve "a letter outside ASCII"]]

[[chart:sales "<script>window.__pwned = 1</script>"]]

[[chart:sales "<img src=x onerror=alert(1)>"]]

Chips too: [[svg:https://198.51.100.7/a.svg]], [[chart:a/b "x"]] and [[chart:sales "unclosed label]].

[[chart:sales extra words "label"]]

An unclosed one is text: [[chart:sales "label"

[[chart:x [[chart:y]]
LLM view
---
title: "Reference names that are refused"
source: hostile/19-reference-names.dh.md
---
<!-- Made by dh llm from the source; nobody edits this file. -->

# Reference names

[[svg:https://198.51.100.7/logo.svg "a URL"]]

[[svg://203.0.113.9/x.svg "a URL with no scheme"]]

[[svg:www.example.com "a host name"]]

[[chart:../../secrets "a path"]]

[[chart:folder/file "a path with a slash"]]

[[chart:.hidden "a dot first"]]

[[interactive:javascript:alert(1) "a scheme"]]

[[interactive:data:text/html,hi "data"]]

[[terminal:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa "a name of 135"]]

[[chart:naïve "a letter outside ASCII"]]

[[chart:sales "<script>window.__pwned = 1</script>"]]

[[chart:sales "<img src=x onerror=alert(1)>"]]

Chips too: [[svg:https://198.51.100.7/a.svg]], [[chart:a/b "x"]] and [[chart:sales "unclosed label]].

[[chart:sales extra words "label"]]

An unclosed one is text: [[chart:sales "label"

[[chart:x [[chart:y]]

Reference names

chart<script>window.__pwned = 1</script>

chart<img src=x onerror=alert(1)>

Chips too: svghttps://198.51.100.7/a.svgNot shown: the name is a URL; the package never fetches: store the part with the host and give it a name (a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it), chartxNot shown: the name is a path; a name is letters, digits, ".", "-" and "_" (at most 128), and the host finds the part by it and chartsalesNot shown: the label has no closing quote; write the label in double quotes on one line.

An unclosed one is text: [[chart:sales "label"

[[chart:x charty