-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't encode fragment as part of linkValidation
Fix for: #1237 Previously URIs were split at a question mark to determine path and query components. This caused a problem when fragments were part of a link as they were deemed to be part of the query. This splits a URL at a ? and a # to get both components and does not encode the fragment. It did feel a little wrong not to encode the fragment at all as there some characters that should be encoded, however the encodeUriComponent method is too heavy handed for a fragment.
- Loading branch information
Showing
2 changed files
with
34 additions
and
4 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