Hello all,
There is an error in the instructions in admin/includes/init_includes/init_sanitize.php.
The instructions read:
Code:
/**
* process all $_POST terms
* Notes to contribution developers.
* If you need to add your own override for the whitelist, you should not just simply set
* $global_xss_whitelist but merge it with any possible previous values, in order to honour other
* contributions.
*
* eg. create an override file in the admin/includes/extra_configures directory containing
*
* $global_xss_whitelist = isset($global_xss_whitelist) ? $global_xss_whitelist : array();
* $my_whitelist = array('some_field_name');
* $global_xss_whitelist = array_merge($whitelist, $global_xss_whitelist);
*/
For the given code to work "$my_whitelist" should be "$whitelist". It's trivial, but I for one copied and pasted from the example and had to figure out why it didn't work as expected.
Thanks!
Bookmarks