Displaying detailed TextCensor results


This article applies to:

  • WebMarshal 6.9.5 and above

Question:

  • How can I show the detailed results of TextCensor evaluation?
  • Why does a template or administrative notification email show only "Expression#3 triggered" or similar phrases in TextCensor results?

Procedure:

By default, WebMarshal displays only a summary of TextCensor results. This behavior helps to avoid displaying potentially offensive language that might be included in the TextCensor expressions. This behavior affects user block web pages (when you use the variable {TextCensorMatches}), as well as administrative emails.

The full results, including the contents of each triggered expression, always display in the rule test interface of the Console to assist with debugging.

You can display the full results in emails and block pages, by changing a setting in the WebMarshal Engine configuration XML file.

Add the following entry to the WMEngine.config.xml file, within the WebMarshal install:

<WebMarshal>
     <Engine>
          <Config>

             <TextCensor showDetail="True" />
          </Config>
     </Engine>
</WebMarshal>
  • Include the quote marks
  • Note that other lines may be present in the config section of this file; do not alter any other line.

To apply the change, restart the Engine service.

To revert the change, remove the line, or set the value to "False", and then restart the Engine service.

Notes:

  • For general information about editing XML files, see Trustwave Knowledgebase article Q12705.

Last Modified 5/28/2012.
https://support.trustwave.com/kb/KnowledgebaseArticle14536.aspx