[rt-devel] attachments

Jesse jesse at fsck.com
Mon Jan 22 09:44:55 EST 2001


And, just so everyone knows, this is already in CVS for RT 1.0.8...which
will get rolled as soon as I do something about the From: parsing bug.

        -j

On Mon, Jan 22, 2001 at 08:55:34AM -0500, Brandon S. Allbery KF8NH wrote:
> On Monday, January 22, 2001 14:32:06 +0100, Christian Kurz 
> <Christian.Kurz at planNET.de> wrote:
> +-----
> | Hm, and what would be a proper code to still get the URL highlighted as
> | Link but still use print_html to have a protecting against java-script?
> +--->8
> 
> sub print_html{
>     my ($value) = shift;
>     my %map = ('<' => '&lt;', '>' => '&gt;', '&' => '&amp;');
>     $value =~ s/([<>\&])/$map{$1}/ge;
>     $value =~ 
> s!(?:^|\b)((?:https?|ftp|mailto)://[^\s\"\'/]+/[^\s():\"\']+)!<A 
> HREF=\"$1\">$1</A>!g;
>     print "$value";
> }
> 
> -- 
> brandon s. allbery     [os/2][linux][solaris][japh]   allbery at kf8nh.apk.net
> system administrator        [WAY too many hats]         allbery at ece.cmu.edu
> electrical and computer engineering                                   KF8NH
> carnegie mellon university     ["better check the oblivious first" -ke6sls]
> 
> 
> _______________________________________________
> Rt-devel mailing list
> Rt-devel at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-devel
> 

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

that's security the same way that asking for directions to topeka and
being told that a seal is a mammal is informative
					-robin at apocalypse.org




More information about the Rt-devel mailing list