Bug #1243
URLs not parsed correctly (accepts invalid chars as part of the URL)
100%
Description
Example line in IRC:
<kgbot> Anmol Ahuja master * [http://git.hades.name/cgit.cgi/amarok.git/commit/?id=8ebcf55] Add missing forward declaration
Identified URL by Quassel:
http://git.hades.name/cgit.cgi/amarok.git/commit/?id=8ebcf55]
The ']' at the end of the string is not a valid char as of RFC 2396 (Uniform Resource Identifier (URI): Generic Syntax).
Quoting http://stackoverflow.com/a/1547922: "The '[' and ']' characters are <reserved> characters and should be percent escaped if not used as delimiters in the scheme-specific syntax. The spec says:".
Hence, the URL should rather be: http://git.hades.name/cgit.cgi/amarok.git/commit/?id=8ebcf55
I guess there are more problems with other characters, probably just needs fixing of a regexp.
Associated revisions
History
#1 Updated by Anonymous almost 11 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset quassel|commit:c1559056803360cc528c578e3458a0bae33bd56c.
Fix URL regex
Removes unwise characters from URL regex. These characters should be percent escaped according to RFC 2396.
Fixes #1243