[rendering] URI linker includes non-URL characters in domains
[rendering] URI linker includes non-URL characters in domains
| Issue ID: | 1743 |
| Issue Category: | bug |
| Component: | core |
| Priority: | normal |
| Status: | active |
| Assigned: | evan |
| Milestone: | 0.7 |
| Keywords: | parser, URI |
Such as @, [, ] and !.
http://identi.ca/notice/7094330
| Attachment | Size |
|---|---|
| 1743_any-length-endswith.diff | 838 bytes |

Updates
#1
Apostrophes also. http://identi.ca/notice/4509587
#2
As of StatusNet 0.8.2, auto-linkification would include a > character if present after a URL (see example at .
I've attached a proposed patch (any-length-endswith.diff) that would allow this situation to be caught and correctly handled by way of the $cannotEndWith array inside callback_helper() in lib/util.php.
A possibly better way would be to un-html-special-char the string before matching URLs, but that may very well not be an option -- this is a minimum-intrusion patch.
#3
I read this alongside #1937, ''support angle bracket < > enclosures to URLs''.
You can also subscribe to the
RSS feed for updates to this issue.