[rt-devel] cgi error from support.pm

Jesse jesse at fsck.com
Wed Mar 21 12:39:36 EST 2001



On Wed, Mar 21, 2001 at 10:22:48AM +0000, Jan Okrouhly wrote:
> BTW, this seems to me like wrong encoding (html like) of the original
> patch - there should be things as:
>     my %map = ('<' => '&lt;', '>' => '&gt;', '&' => '&amp;');
>     $value =~ s/([<>\&])/$map{$1}/ge;
>     $value =~ s!(?:^|\b)((?:https?|ftp|mailto)://[^\s\"\'/]+/[^\s():\"\']+)!<A HREF=\"$1\">$1</A>!g;
> 
>     #$value =~ s/</&lt;/g;
>     #$value =~ s/>/&gt;/g;
>     print "$value";
 
thanks. I committed the fix to CVS


-- 
jesse reed vincent -- root at eruditorum.org -- jesse at fsck.com 
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

I admit that X is the second worst windowing system in the world, but all the 
others I've used are tied for first.   




More information about the Rt-devel mailing list