On Thu, Feb 09, 2012 at 01:36:22PM -0500, Jeff Blaine wrote:
> Actually, this is maybe a bug in Mason?  If I follow
> the code chain:
> 
>     push @row, ProcessColumnMapValue ($attr,
>                        Arguments => [ $Ticket, 0 ], Escape => 1);
> 
> ProcessColumnMapValue() is defined in lib/RT/Interface/Web.pm:
> 
>     ...
>     return $m->interp->apply_escapes( $value, 'h' ) if $args{'Escape'};
>     ...
> 
> So it appears apply_escapes() is leaving behind '<br/>' tags?
> 
> Has anyone else seen this?

apply_escapes just calls a filter on output.  You can use built-in
mason filters or custom ones.  RT happens to hook the h one to call
the EscapeUTF8 function in Web.pm, and you can look at what kind of
transform it does.

ProcessColumnMapValue is the method that's used in outputting row data
in ticket listings too, so you can get a sense of where else that code
is run.

-kevin

Attachment: pgpyPXdkEV90G.pgp
Description: PGP signature

--------
RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5 & 6, 2012

Reply via email to