forked from rebolsource/r3
-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: rewritten
decode-url
function, mold
properly escaping urls
Related to: Oldes/Rebol-issues#475 Oldes/Rebol-issues#482 Oldes/Rebol-issues#1275 Oldes/Rebol-issues#1333 Oldes/Rebol-issues#1334 Oldes/Rebol-issues#1644 Oldes/Rebol-issues#1986 Oldes/Rebol-issues#2012 Oldes/Rebol-issues#2013 Oldes/Rebol-issues#2014 Oldes/Rebol-issues#2207 Oldes/Rebol-issues#2380 Oldes/Rebol-issues#2381 Oldes/Rebol-issues#2489
- Loading branch information
Showing
4 changed files
with
277 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,34 +8,6 @@ Rebol [ | |
|
||
~~~start-file~~~ "port" | ||
|
||
===start-group=== "decode-url" | ||
;@@ https://github.com/Oldes/Rebol-issues/issues/2380 | ||
--test-- "decode-url-unicode" | ||
url: decode-url http://example.com/get?q=ščř#kovtička | ||
--assert url/scheme = 'http | ||
--assert url/host = "example.com" | ||
--assert url/path = "/get?q=ščř" | ||
--assert url/tag = "kovtička" | ||
--test-- "decode-url-unicode" | ||
url: decode-url http://švéd:břéť[email protected]:8080/get?q=ščř#kovtička | ||
--assert url/scheme = 'http | ||
--assert url/user = "švéd" | ||
--assert url/pass = "břéťa" | ||
--assert url/host = "example.com" | ||
--assert url/port = 8080 | ||
--assert url/path = "/get?q=ščř" | ||
--assert url/tag = "kovtička" | ||
--test-- "decode-url http://host?query" | ||
url: decode-url http://host?query | ||
--assert url/host = "host" | ||
--assert url/path = "?query" | ||
--test-- "decode-url tcp://:9000" | ||
;@@ https://github.com/Oldes/Rebol-issues/issues/1275 | ||
url: decode-url tcp://:9000 | ||
--assert url/scheme = 'tcp | ||
--assert url/port = 9000 | ||
|
||
===end-group=== | ||
|
||
===start-group=== "directory port" | ||
;@@ https://github.com/Oldes/Rebol-issues/issues/2320 | ||
|
Oops, something went wrong.
7bf61fa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit affects also Oldes/Rebol-issues#2406