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

fix(idn): encode url except domain #68

Merged
merged 2 commits into from
Nov 5, 2019
Merged

Conversation

curbengh
Copy link
Contributor

@curbengh curbengh commented Sep 8, 2019

Compatibility with hexo v4 (hexojs/hexo#3708), while maintaining backward compatibility with v3, #74 is not compatible with v3 nor IDN.
Fixes hexojs/hexo-generator-feed#63

Supersede #66, #74

test/index.js Outdated Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Sep 8, 2019

Coverage Status

Coverage remained the same at 100.0% when pulling 66c708f on curbengh:idn-handling into 57c2106 on hexojs:master.

@tomap
Copy link
Contributor

tomap commented Sep 8, 2019

Your title is wrong. Idn should not be encoded to punycode. Ever. Just the path should be encoded.

@curbengh curbengh changed the title fix(idn): idn should be encoded to punycode fix(idn): encode path except domain Sep 8, 2019
@curbengh
Copy link
Contributor Author

curbengh commented Sep 8, 2019

Your title is wrong. Idn should not be encoded to punycode. Ever. Just the path should be encoded.

Updated title and commit message.

I think you might have confused percent-encoding with punycode. IDN must not be encoded to percent-encoding, but it can be encoded to punycode even though it's not required.


btw, don't merge this until we can figure out the failing test.

@curbengh curbengh changed the title fix(idn): encode path except domain fix(idn): encode url except domain Sep 8, 2019
@curbengh curbengh changed the title fix(idn): encode url except domain WIP fix(idn): encode url except domain Sep 11, 2019
@curbengh
Copy link
Contributor Author

Pending hexojs/hexo#3708

@curbengh curbengh changed the title WIP fix(idn): encode url except domain fix(idn): encode url except domain Sep 24, 2019
@curbengh curbengh requested a review from a team September 24, 2019 10:04
@curbengh
Copy link
Contributor Author

Fixed failing test. Ready to be reviewed.

@SukkaW SukkaW mentioned this pull request Oct 21, 2019
@curbengh
Copy link
Contributor Author

curbengh commented Nov 4, 2019

@hexojs/core
Ready for review.

@curbengh curbengh requested review from a team and removed request for a team November 4, 2019 10:46
@curbengh curbengh merged commit 6a5559d into hexojs:master Nov 5, 2019
@curbengh curbengh deleted the idn-handling branch November 5, 2019 00:29
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.

Domain should not be uri encoded (for IDN)
4 participants