-
Notifications
You must be signed in to change notification settings - Fork 4
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 URI malformed issue for links with percent symbol #5
Conversation
Thanks for the PR. But it looks like we want |
Yes, we want encodeURI() - fixed |
Great. Can you squash the commits for me? |
Done. Please check that everything I did right (not enough git expirience) |
Perfect. But I'm a little busy now. I'll try to check it once more over the weekend and then merge. |
I've been a little busy, and took me a bit to be able to sit down and think about this. Is it just me or does this now just undo the very thing it's supposed to be doing? Correct me if I'm wrong, but it seems that the problem is that if we try to What do you think? |
Yes, problem with not-encoded url strings in this case. We always need
But can be any more links with another problem? Or can be problem in next step in this function? By the way we can solve this problem and waiting for another bug reports if exist another type of "bad" links. In current case "bad" link just ignored, hash added to links before that in document, and links after that. |
Sorry for the slow reply. I think the try/catch code you posted should work. I don't think there are other types of bad links. Do you want to update the PR? |
Thank you for reply! PR updated. |
Fix URI malformed issue for links with percent symbol
Fix URI malformed issue for links with percent symbol
#4
http://stackoverflow.com/questions/9064536/javascript-decodeuricomponent-malformed-uri-exception