From 92dc23f58b64f96aa9e3c52917883bb2c4fe4f7d Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Thu, 16 Mar 2006 03:51:24 +0000
Subject: [PATCH] Bah, if your URI is more than 80 chars, use tinyurl or
 whatever.

---
 web/lib/msgslib.ssjs | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/web/lib/msgslib.ssjs b/web/lib/msgslib.ssjs
index cfd00cec4f..5826947d4d 100644
--- a/web/lib/msgslib.ssjs
+++ b/web/lib/msgslib.ssjs
@@ -183,16 +183,11 @@ function idx_to_user(fromidx)
 }
 
 function make_links(str) {
-	str=str.replace(/(?:http|https|ftp|telnet|gopher|irc|news):\/\/[\w\-\.]+\.[a-zA-Z]+(?::[\w-+_%]*)?(?:\/(?:[\r\n\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 allow line breaks in path (will be stripped)
 		var text=str;
 		var uri=str;
 		var extra='';
-		var m=str.match(/^([\x00-\xff]*?)((?:\r?\n\r?\n).*)$/)
-		if(m!=null) {
-			str=m[1];
-			extra=m[2];
-		}
 		m=str.match(/^([\x00-\xff]*?)((?:&gt;|[\r\n,.\)])+)$/);
 		if(m!=null) {
 			text=m[1];
-- 
GitLab