Skip to content
Snippets Groups Projects
Commit cbeeb094 authored by rswindell's avatar rswindell
Browse files

Include ':' in the list of valid characters for a URL 'path' element. This

fixes the rendering of links like this one:
http://wiki.synchro.net/module:avatars
parent 307627b0
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,6 @@ if(user.number==0) {
exit();
}
/* Flags for clean_msg_headers() */
var CLEAN_MSG_REPLY = (1<<0);
......@@ -193,7 +192,7 @@ function idx_to_user(fromidx)
}
function make_links(str) {
str=str.replace(/(?:http|https|ftp|telnet|gopher|irc|news):\/\/[\w\-\.]+\.[a-zA-Z]+(?::[\w-+_%]*)?(?:\/(?:[\w\-._\?\,\/\\\+&;%\$#\=~\*]*))?/gi,function(str) {
str=str.replace(/(?:http|https|ftp|telnet|gopher|irc|news):\/\/[\w\-\.]+\.[a-zA-Z]+(?::[\w-+_%]*)?(?:\/(?:[\w\-._\?\,\/\\\+&;:%\$#\=~\*]*))?/gi,function(str) {
// | Protocol |Hostname |TLD | Port | Path |
var text=str;
var uri=str;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment