[Tickets #10266] Re: Allow to size restrict the tidy extension

bugs at horde.org bugs at horde.org
Wed Jun 22 17:26:10 UTC 2011


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/10266
------------------------------------------------------------------------------
  Ticket             | 10266
  Updated By         | Michael Slusarz <slusarz at horde.org>
  Summary            | Allow to size restrict the tidy extension
  Queue              | IMP
  Version            | Git master
  Type               | Enhancement
  State              | New
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


Michael Slusarz <slusarz at horde.org> (2011-06-22 17:26) wrote:

> Horde_Text_Filter_Cleanhtml offers a 'size' parameter setting that I  
> (might) wish to set installation wide but seem to be unable to modify.
>
> The original problem: I have an installation where the "tidy"  
> extension fails to postProcess() the HTML message text for large  
> messages probably due to memory limits. Now I assume the "size"  
> parameter is what I would like to use in order to avoid post  
> processing in such cases. Is that assumption correct?

I believe so.

> What would be a reasonable way to make this configurable?

You would have to create a new parameter in mime_drivers.php for  
*Horde* (not IMP).  HTML cleaning is done within the _cleanHTML()  
method in the framework HTML Mime_Driver, not the IMP driver.






More information about the bugs mailing list