|
Drak
Ruleset validation.June 12, 2010 11:52AM |
HTMLPurifier does not do a good job of validating it's configuration and handling unexpected values gracefully. In some cases, HTMLPurifier can terminate abruptly if its configuration is not set properly.
Would it be possible to provide an API to validate added rules? I didnt see a bug tracker to log the request, so I apologize if this is the wrong place.
Drak
|
Re: Ruleset validation. June 12, 2010 02:17PM |
Admin Registered: 6 years ago Posts: 2,636 |
|
Drak
Re: Ruleset validation.June 19, 2010 09:19PM |
We are integrating an interface into Zikula (http://zikula.org) so the rules can be configured via a form (and stored to the database). As such we have no way to validate if the rules will work, they'll just hose the site next pageload because we cannot validate them. IMO, it's the job of the HTMLPurifier not to accept invalid rulesets, so it should both either provide a way to validate rules, or at the very least throw an exception if it breaks so we can catch it.
|
Re: Ruleset validation. June 19, 2010 09:27PM |
Admin Registered: 6 years ago Posts: 2,636 |