I briefly searched this forum for the answer I am looking for with no luck.
How can I enable my phpmyfaq to not filter javascrpt I put in the content?
I have an image, and would like to insert javascript so it pops out in a new window at the correct size.
Thanks,
Joshua
Javascript in content body
Moderator: Thorsten
Hi,
just remove the JavaScript filter in the file inc/init.php in the method PMF_Init::cleanRequest().
bye
Thorsten
just remove the JavaScript filter in the file inc/init.php in the method PMF_Init::cleanRequest().
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi,
maybe you've been badly driven by the OOP syntax
that means:
- class PMF_Init
- method cleanRequest
So you'll find it declared as:within the :
You need to move this line from: to:
Beware that this simple change will expose you to XSS attacks. It would be wiser to customize a little bit the basicXSSClean function to avoid the cleaning of your desired tags.
Regards,
Matteo
maybe you've been badly driven by the OOP syntax

- class PMF_Init
- method cleanRequest
So you'll find it declared as:
Code: Select all
function cleanRequest()
Code: Select all
class PMF_Init
Code: Select all
$newvalues = PMF_Init::removeXSSGPC($newvalues);
Code: Select all
//$newvalues = PMF_Init::removeXSSGPC($newvalues);
Regards,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Amazon.co.uk Wishlist