You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Encoded delimiter characters are not delimiters in URLs. LOAD "disrespects" this property "unencoding" such characters and transforming them to delimiters, in fact.
Rebol url in source code escaping (required to escape Rebol delimiter chars which are allowed in url as ;[](){}")
RFC's url escaping
Unfortunately both of them are using % as an escape char.
So it may be strange, but it is correct. One must be careful when using url-encoded data in urls inside a Rebol source code.
>> #[url! "http://a.b.c/d?e=f%26&g=h"]
==http://a.b.c/d?e=f%2526&g=h>> join http://a.b.c/d?"e=f%26&g=h"==http://a.b.c/d?e=f%2526&g=h>> length? probe #[url! "a:%26"]
a:%2526==5;<--- because in construction syntax the string is not decoded>> length? probe a:%26a:&
==3;<--- because Rebol lexer decoded the & char
To have load respecting the escaping, we would first need to allow lexer's delimiter chars be part of the url syntax
(for example: http://example.com/?data=a;b)
Submitted by: Ladislav
Encoded delimiter characters are not delimiters in URLs. LOAD "disrespects" this property "unencoding" such characters and transforming them to delimiters, in fact.
Imported from: CureCode [ Version: r3 master Type: Bug Platform: All Category: Datatype Reproduce: Always Fixed-in:none ]
Imported from: metaeducation#2011
Comments:
Submitted by: BrianH
This is related to #1327, #1333 and #1644.
Submitted by: Ladislav
In the core-tests suite.
The text was updated successfully, but these errors were encountered: