HTML Purifier: Standard cross-site scripting prevention library

Login or register to post comments
6 replies [Last post]
alex94040's picture
Offline
Joined: 11/06/2008

Folks,

QCubed includes a bunch of hacky code for cross-site scripting prevention. I think we should switch over to a standard library to do this work: HTML Purifier looks promising (http://htmlpurifier.org/). What do you think?

Thanks!

Offline
Joined: 07/07/2008

I seems to be an interesting project and the license is LGPL, so quite compatible with the MIT of QCubed.

Unfortunately I am not so good in this field, but I like your proposal.

Offline
Joined: 03/31/2008

I'm semi-wary about including LGPL in core, but a separate download for it shouldn't be an issue.
As such I'd be all for tearing out the existing input validation code and requiring those who want validation to use HTML Purifier exclusively. It has been my choice of validation classes for some time.

OOPMan's picture
Offline
Joined: 11/07/2008

Thanks for posting this Alex as I was completely unaware of it's existence. I will definitely be pushing the usage of this at my work and I think I may also try to do some integration work on it :-)

Offline
Joined: 04/23/2008

You have my vote for HTML Purifier!

=-)

Offline
Joined: 03/06/2009

HTML purifier seems really nice, I'd be happy to see it integrated with Qcubed.

Offline
Joined: 10/11/2010

I think the licensing issue just came up again :P

If someone can help, please tell us if LGPL and MIT licenses are compatible.