rt.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --- lib/RT/User_Overlay.pm.dist Wed Apr 2 14:44:58 2003
  2. +++ lib/RT/User_Overlay.pm Wed Apr 2 14:45:17 2003
  3. @@ -541,7 +541,7 @@
  4. # coming from a subdomain as coming from second level domain
  5. # foo.com
  6. if ($RT::CanonicalizeEmailAddressMatch && $RT::CanonicalizeEmailAddressReplace ) {
  7. - $email =~ s/\$RT::CanonicalizeEmailAddressMatch/$RT::CanonicalizeEmailAddressReplace/gi;
  8. + $email =~ s/$RT::CanonicalizeEmailAddressMatch/$RT::CanonicalizeEmailAddressReplace/gi;
  9. }
  10. return ($email);
  11. }
  12. --- html/Ticket/Elements/ShowMessageStanza.dist Wed Apr 2 15:28:24 2003
  13. +++ html/Ticket/Elements/ShowMessageStanza Wed Apr 2 17:23:30 2003
  14. @@ -22,21 +22,22 @@
  15. %#
  16. %# END LICENSE BLOCK
  17. <%perl>
  18. -foreach my $stanza (@$Message) {
  19. - if ( ref $stanza eq "ARRAY" ) {
  20. - $m->comp( 'ShowMessageStanza',
  21. - Depth => $Depth + 1,
  22. - Message => $stanza );
  23. + { my $msg = '';
  24. + foreach my $stanza (@$Message) {
  25. + if ( ref $stanza eq "ARRAY" ) {
  26. + $m->comp( 'ShowMessageStanza',
  27. + Depth => $Depth + 1,
  28. + Message => $stanza );
  29. + }
  30. + elsif ( ref $stanza eq "HASH" ) {
  31. + my $content = $stanza->{raw};
  32. + RT::Interface::Web::EscapeUTF8(\$content);
  33. + $m->comp('/Elements/Callback', content => \$content, %ARGS);
  34. + $msg .= "$content\n";
  35. + }
  36. }
  37. - elsif ( ref $stanza eq "HASH" ) {
  38. - my $content = $stanza->{raw};
  39. - RT::Interface::Web::EscapeUTF8(\$content);
  40. - $m->comp('/Elements/Callback', content => \$content, %ARGS);
  41. - $content =~ s/\n/<br>/gi;
  42. -
  43. </%perl>
  44. -<font color="<%$colors[$Depth]%>"><%$content |n%><br></font>
  45. -% }
  46. +<font color="<%$colors[$Depth]%>"><pre><%$msg |n%></pre><br></font>
  47. % }
  48. <%INIT>
  49. use URI::URL;