[Rt-commit] rt branch, 4.2/new-default-options, created. rt-4.0.6-446-g3c6af07

Thomas Sibley trs at bestpractical.com
Tue Jul 3 17:13:14 EDT 2012


The branch, 4.2/new-default-options has been created
        at  3c6af070008c4153b47f3a4fd0afd35c00352a65 (commit)

- Log -----------------------------------------------------------------
commit 3c6af070008c4153b47f3a4fd0afd35c00352a65
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Mon Jul 2 18:35:22 2012 -0700

    Prefer rich text (HTML) when displaying messages
    
    These days HTML messages are the norm, and people wonder why RT can't
    display their colored replies or bold words.  Folks who prefer plain
    text still have that option.
    
    Defaults $PreferRichText to on.

diff --git a/docs/UPGRADING-4.2 b/docs/UPGRADING-4.2
index 66af083..f5d55ce 100644
--- a/docs/UPGRADING-4.2
+++ b/docs/UPGRADING-4.2
@@ -4,3 +4,6 @@ UPGRADING FROM RT 4.0.0 and greater
   describes what the log level controls.  Setting $LogToScreen will still work,
   but an informational notice will be issued on server start telling you about
   the rename.  To avoid this you should set $LogToSTDERR instead.
+
+* Rich text (HTML) messages are now preferred for display.  If you prefer plain
+  text messages, set $PreferRichText to 0.
diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
index 1203e1c..adc57e0 100755
--- a/etc/RT_Config.pm.in
+++ b/etc/RT_Config.pm.in
@@ -1558,14 +1558,14 @@ Set($AttachmentUnits, undef);
 
 =item C<$PreferRichText>
 
-If C<$PreferRichText> is set to 1, RT will show HTML/Rich text messages
-in preference to their plain-text alternatives. RT "scrubs" the HTML to
-show only a minimal subset of HTML to avoid possible contamination by
-cross-site-scripting attacks.
+By default, RT shows rich text (HTML) messages if possible.
+
+If C<$PreferRichText> is set to 0, RT will show plain text messages
+in preference to any rich text alternatives.
 
 =cut
 
-Set($PreferRichText, undef);
+Set($PreferRichText, 1);
 
 =item C<$MaxInlineBody>
 

-----------------------------------------------------------------------


More information about the Rt-commit mailing list