diff --git a/web/lib/msgslib.ssjs b/web/lib/msgslib.ssjs
index 436f5f28bf553d5fad7f904345958a954be3ff57..8c7df56ef3e7cc3c29e3528bca68a589fa9c4bef 100644
--- a/web/lib/msgslib.ssjs
+++ b/web/lib/msgslib.ssjs
@@ -183,8 +183,8 @@ function idx_to_user(fromidx)
 }
 
 function make_links(str) {
-	str=str.replace(/(?:http|https|ftp|telnet|gopher|irc|news):\/\/[\w\-\.]+\.[a-zA-Z]+(?::[0-9]*)?(?:\/(?:[\w\-._\?\,\/\\\+&;%\$#\=~\*]*))?/gi,function(str) {
-//					 | Protocol                                    |Hostname  |TLD     | Port     | Path                                  |
+	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 ret='<a href="'+str+'" target="_blank">'+str+'</a>';
 		var m=str.match(/^(.*)(&gt;|[,.\)])$/);
 		if(m!=null)