[rt-users] URL within a ticket?
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Sat Dec 16 22:12:37 EST 2000
On Saturday, December 16, 2000 16:30 -0600, Greg Trotter
<greg at ussnomad.org> wrote:
+-----
| The URL shows up as just plain text, and we have to copy and paste it
| into another browser window to get to the file. Is there any way I can
| have the URL display at a link when viewing the ticket?
+--->8
In lib/rt/ui/web/support.pm, replace the print_html sub with:
sub print_html{
my ($value) = shift;
my %map = ('<' => '<', '>' => '>', '&' => '&');
$value =~ s/([<>\&])/$map{$1}/ge;
$value =~ s!(?:^|\b)
((?:https?|ftp|mailto)://[^\s\"\'/]+/[^\s():\"\']+)
!<A HREF=\"$1\">$1</A>!gx;
print $value;
}
(I hope RT 1.0.x has that; my source has diverged so far from Jesse's that
it's not funny.)
--
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]
More information about the rt-users
mailing list