Fabrik / fabrik

Fabrik for Joomla 3.x
http://fabrikar.com
Other
254 stars 380 forks source link

Textarea + WYSIWYG + Custom Blacklist Text Filters #2198

Closed joomlabeat closed 4 years ago

joomlabeat commented 4 years ago

Hi,

This one has bugged me for some time... and I have done numerous tests - with the editors, the filters, fresh installations etc... and the conclusion is that it looks like Fabrik will strip all tags under the following combination: Textarea Element + WISIWYG Editor + Custom Blacklist in Global configuration Text Filters.

I could have a look at this - currently I am about to start investigating where this is handled in fabrik code - it would help if you could point me to that...

joomlabeat commented 4 years ago

The problem lies here: /libraries/fabrik/fabrik/Helpers/Worker.php getContentFilter()

It can be fixed by changing line 1586 from: if ($filterType == 'BL')

to:

if ($filterType == 'BL' || $filterType == 'CBL')

So far the getContentFilter does not bother with the Custom Blacklist (CBL) at all. Since BL and CBL are doing the same thing - we can group them together in the same if block.