Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further fix for Text Filtering when using Custom Blacklist #2206

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joomlabeat
Copy link

Following up the recent PR #2199 that attempted to fix the Filtering of Textarea element when using Custom Blacklist for Text Filters, this PR improves on top of that, because the call the JFilterInput call from inside the Worker is still forcing to clean up all tags of the default blacklist, because the param $xssAuto of the JFilterInput::getInstance() method gets the default value (1) which forces cleanup, instead of only cleaning the essentials.

Helpful resources:

Following up a recent PR that attempted to fix the Filtering of textarea element when using Custom Blacklist, that was always defaulting to disregarding the Custom BL, this PR improves this, because the call the JFilterInput was still forcing to clean up based on the default blacklist.
Helpful resources:
- https://stackoverflow.com/a/42729709/1739313
- https://api.joomla.org/cms-3/classes/Joomla.CMS.Filter.InputFilter.html#method_getInstance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant