-
assigned issue to
Wiki transformers not always encoding URL special chars
Issue #70
resolved
Characters can be unsafe for a number of reasons.
…
The characters "<" and ">" are unsafe because they are used as the
delimiters around URLs in free text…
All unsafe characters must always be encoded within a URL.
https://www.rfc-editor.org/rfc/rfc1738#page-3
Request
https://www.google.com/adc<def
Typescript
{
"version": 1,
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "https://www.google.com/adc<def",
"marks": [
{
"type": "link",
"attrs": {
"href": "https://www.google.com/adc%3Cdef"
}
}
]
}
]
}
]
adf-builder-java
{
"type" : "doc",
"version" : 1,
"content" : [ {
"type" : "paragraph",
"content" : [ {
"type" : "text",
"text" : "https://www.google.com/adc<def",
"marks" : [ {
"type" : "link",
"attrs" : {
"href" : "https://www.google.com/adc<def" <---- not safely encoded
}
} ]
} ]
} ]
}
Comments (2)
-
reporter -
reporter - changed status to resolved
- Log in to comment