[rt-users] RT (2.0.15) doesn't get the mailto: link quite correct
Binand Sethumadhavan
binand at gmx.net
Tue Apr 8 17:27:42 EDT 2003
Hi,
When an email is forwarded using MS Outlook, the quoted part looks
like this:
-----Original Message-----
From: Somebody [mailto:somebody at somewhere.com]
Sent: Tuesday, April 08, 2003 10:44 AM
To: someoneelse at somewhere.com
Subject: Something
RT inserts a <A HREF="mailto:somebody at somewhere.com]" TARGET=new>...</A>
for the email address. The regex it uses also includes the closing
']' that Outlook introduces, so the clickable URL is not usable (without
further editing).
This patch fixes this minor issue (it just adds a ] to the stuff that
signifies the end of the URL).
Maybe it ought to cater to ')' also. Who knows?
Binand
--- ./webrt/Ticket/Elements/ShowTransaction.old Tue Apr 8 07:44:04 2003
+++ ./webrt/Ticket/Elements/ShowTransaction Tue Apr 8 07:44:14 2003
@@ -42,7 +42,7 @@
$content =~ s/&/&/g;
$content =~ s/</</g;
$content =~ s/>/>/g;
- $content =~ s!((?:http|https|ftp|mailto):\S*?)([\s"']|>|\.[\n])!<A HREF=\"$1\" TARGET=new>$1</A>$2!g;
+ $content =~ s!((?:http|https|ftp|mailto):\S*?)([\s"'\]]|>|\.[\n])!<A HREF=\"$1\" TARGET=new>$1</A>$2!g;
}
More information about the rt-users
mailing list