When HTML Purifier encounters a URI it doesn't understand, it throws a warning. This indicates two problems, first, the lack of support for common URIs such as IRC, and second, the lack of silent fallback if such a URL cannot be purified. A simple warning is reproduced below:

Warning: HTMLPurifier_URISchemeRegistry::include_once(/library/HTMLPurifier/URIScheme/irc.php) [function.HTMLPurifier-URISchemeRegistry-include-once]: failed to open stream: No such file or directory in /library/HTMLPurifier/URISchemeRegistry.php on line 89

Any chance of a fix? An obvious hack is to simply cause the warnings to be hidden, but it seems a superior solution could be implemented.

Re: No support for IRC URIs or fallback if they cannot be validated
August 24, 2007 09:30PM

Definitely a bug. I'm not so happy about this auto-inclusion tomfoolery so the entire code in URISchemeRegistry will probably get overhauled.

2.1.2 cured the issues I was having in my application, thanks for the great work for open-source!

Sorry, you do not have permission to post/reply in this forum.