html/Elements/ScrubHTML correction

Hi All,

I think there is a tag missing from the scrubber-allow:

.

Affected RT version
Our RT is 3.4.4pre

Problem:
By using PreferRichText sometimes the text appears without formatting.

Reason
The problem occures when the richtext is not a normal html doc, but a
classic text (I mean: linebreak is chr(13) not
and spaces are
spaces). In a html document a part like this has to be enclosed by


and
(‘pre’ means preformatted text). The bug: after these tags
have been eliminated by the scrubber, the text will have displayed
without formatting (no line breaks, no tabs, no spaces).

Resolution
Insert PRE into the scrubber’s allow string. Original file:
RT3PATH/share/html/Elements/ScrubHTML, line 64.

$scrubber->allow(
qw[A B U P BR I HR BR SMALL EM FONT SPAN DIV UL OL LI DL DT DD PRE]);

Regards,

Ákos