Welcome! » Log In » Create A New Profile

Important About Using htmlpurifier

Posted by Mixremix.in 
Important About Using htmlpurifier
February 02, 2013 07:17AM

Guyz Really i want your help plz plz plz i have my site affected with XSS and i m a student i m unable to start htmlpurifier on my site an instruction i install only library folder in /public html abd then put this code in index.php <?php require_once '/path/to/htmlpurifier/library/HTMLPurifier.auto.php';

$config = HTMLPurifier_Config::createDefault(); $purifier = new HTMLPurifier($config); $clean_html = $purifier->purify($dirty_html); ?>

but getting warning error and a fatal error so i know i made some mistake plz u r expert help me in simple manner so that my site get secured you can also mail me pearlvishu[at]gmail[dot]com or if u r on fb - fb.com/vishalworld000 plz hepl guyz

Re: Important About Using htmlpurifier
February 02, 2013 11:10AM

just to clarify

you did actually change require_once '/path/to/htmlpurifier/library/HTMLPurifier.auto.php';

to require_once 'your servers path to/htmlpurifier/library/HTMLPurifier.auto.php';

ImpressCMS: Make A Lasting Impression

Re: Important About Using htmlpurifier
August 12, 2014 05:31PM

I was having the same problem. You have to be very carfeful with the relative path. make sure that it goes to the correct file.

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