[Rt-commit] r2657 - in rt/branches/PLATANO-EXPERIMENTAL: . html/Search/Elements

jesse at bestpractical.com jesse at bestpractical.com
Sat Apr 16 02:45:00 EDT 2005


Author: jesse
Date: Sat Apr 16 02:44:59 2005
New Revision: 2657

Modified:
   rt/branches/PLATANO-EXPERIMENTAL/   (props changed)
   rt/branches/PLATANO-EXPERIMENTAL/html/Search/Elements/BuildFormatString
Log:
 r12995 at hualien:  jesse | 2005-04-16 02:25:59 -0400
  r11323 at hualien:  jesse | 2005-04-01 04:52:16 -0500
   r9577 at hualien (orig r2498):  clkao | 2005-03-23 17:03:02 +0800
   Don't html-escape loc() when building FormatString.
  
 


Modified: rt/branches/PLATANO-EXPERIMENTAL/html/Search/Elements/BuildFormatString
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL/html/Search/Elements/BuildFormatString	(original)
+++ rt/branches/PLATANO-EXPERIMENTAL/html/Search/Elements/BuildFormatString	Sat Apr 16 02:44:59 2005
@@ -228,7 +228,8 @@
 foreach my $field (@seen) {
     next unless $field;
     my $row = "'" . $field->{Prefix};
-    $row .= "__" . $m->interp->apply_escapes( $field->{Column}, 'h' ) . "__"
+    $row .= "__" . ($field->{Column} =~ m/\(/ ? $field->{Column} # func, don't escape
+		    : $m->interp->apply_escapes( $field->{Column}, 'h' )) . "__"
       unless ( $field->{Column} eq "<blank>" );
     $row .= $field->{Suffix} . "'";
     push( @format_string, $row );


More information about the Rt-commit mailing list