[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.8-94-g8a5647b
? sunnavy
sunnavy at bestpractical.com
Tue Jun 22 02:52:52 EDT 2010
The branch, 3.8-trunk has been updated
via 8a5647b9db225deef563bb989f4172ccff08ba40 (commit)
from 6e3a9d91fb91ebb2a043f5d66ecc8dbb717051cb (commit)
Summary of changes:
lib/RT/Graph/Tickets.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 8a5647b9db225deef563bb989f4172ccff08ba40
Author: sunnavy <sunnavy at bestpractical.com>
Date: Tue Jun 22 14:52:46 2010 +0800
escape < and > for graphviz labels
diff --git a/lib/RT/Graph/Tickets.pm b/lib/RT/Graph/Tickets.pm
index 77a0ce5..512668d 100644
--- a/lib/RT/Graph/Tickets.pm
+++ b/lib/RT/Graph/Tickets.pm
@@ -233,7 +233,7 @@ sub AddTicket {
my @fields = $self->_PropertiesToFields( %args );
if ( @fields ) {
unshift @fields, $args{'Ticket'}->id;
- my $label = join ' | ', map { s/(?=[{}|])/\\/g; $_ } @fields;
+ my $label = join ' | ', map { s/(?=[{}|><])/\\/g; $_ } @fields;
$label = "{ $label }" if ($args{'Direction'} || 'TB') =~ /^(?:TB|BT)$/;
$node_style{'label'} = gv_escape( $label );
$node_style{'shape'} = 'record';
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list