Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iruleuri.tcl update to URI::compare, URI::encode and URI::decode #56

Merged
merged 4 commits into from
Nov 10, 2018

Conversation

andy-mcgrath
Copy link
Contributor

Update to URI::encode and URI::decode to use string map.

URI::encode has been added to %7e / ~ excluding letter, number and some select symbols.
URI::decode decodes all characters up to %7e / ~ and string map used to map both upper and lower case charaters.

e.g. %2b and %2B map to + using string map {"%2b" "+" "%2B" "+"}

Reference using UTF-8 from HTML URL Encoding Reference

apextc added 2 commits November 5, 2018 15:33
Update to `URI::encode` and `URI::decode` to use string map.

`URI::encode` has been added to `%7E` / `~` excluding letter, number and some select symbols.
`URI::decode` decodes all characters up to `%7E` / `~`
@landro
Copy link
Owner

landro commented Nov 8, 2018

Nice work, @apextc ! I'll try to review and merge this within the next few days!

@andy-mcgrath
Copy link
Contributor Author

@landro I have an update to the URI::compare as well, do you want it added to this pull request or would you prefer me to create a new one so you can review independently?

If you want to quickly take a look - apextc/TesTcl commit 'rewrite testcl::URI::compare'

@landro
Copy link
Owner

landro commented Nov 9, 2018 via email

@andy-mcgrath andy-mcgrath changed the title Iruleuri.tcl update to URI::encode and URI::decode Iruleuri.tcl update to URI::compare, URI::encode and URI::decode Nov 9, 2018
@landro landro merged commit 6eace4e into landro:master Nov 10, 2018
@landro
Copy link
Owner

landro commented Nov 10, 2018

Great work @apextc !

@andy-mcgrath andy-mcgrath deleted the iruleuri branch November 12, 2018 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants