Skip to content
Snippets Groups Projects
Commit 4fd27bed authored by runemaster's avatar runemaster
Browse files

BugFix test for URI's with "*" in them ... (viewcvs.cgi)

parent 915cb272
No related branches found
No related tags found
No related merge requests found
......@@ -183,6 +183,6 @@ function idx_to_user(fromidx)
}
function make_links(str) {
str=str.replace(/(?:http|https|ftp|telnet|gopher|irc)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]+(?::[a-zA-Z0-9]*)?(?:\/(?:[a-zA-Z0-9\-._\?\,\/\\\+&%\$#\=~]*))?[^,.\(\)\s]/gi,'<a href="$&" target="_blank">$&</a>');
str=str.replace(/(?:http|https|ftp|telnet|gopher|irc)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]+(?::[a-zA-Z0-9]*)?(?:\/(?:[a-zA-Z0-9\-._\?\,\/\\\+&%\$#\=~\*]*))?[^,.\(\)\s]/gi,'<a href="$&" target="_blank">$&</a>');
return(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