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

Don't allow unsafe characters in URLs #121

Merged
merged 1 commit into from
Jan 9, 2019

Conversation

maxandersen
Copy link
Contributor

Why:

  • asciidoc files has links like http://example.com[Example] which
    currently when parsed includes the [Example] section
  • This causes errors when parsing the url later on.

This change addreses the need by:

Fixes #120

Why:

 * asciidoc files has links like http://example.com[Example] which
   currently when parsed includes the [Example] section
 * This causes errors when parsing the url later on.

This change addreses the need by:

 * Add unsafe characters to the exclusin in the regular expression match
   See https://perishablepress.com/stop-using-unsafe-characters-in-urls/
@aarongustafson
Copy link
Owner

Looks good

@aarongustafson aarongustafson merged commit 9ea862d into aarongustafson:master Jan 9, 2019
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