-
Notifications
You must be signed in to change notification settings - Fork 438
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
[config] "allowed-elements", "allowed-markup" should replace, not amend default allowlists #751
Comments
See server docs
I agree that the config should be named The code for that is in But the config has been working that way for quite some time and has been documented to work that way. If you wanted to change this behaviour, you'd most likely break existing setups. |
Hi @ix5, so how could I setup the configurations to exclude markup |
Edit Change that to: self.elements = elements
self.attributes = attributes Note that this is only a temporary fix ("monkey-patching") that you have to apply every time you install/update isso. If you want to change the behaviour for everyone, you should submit a Pull Request to change it. |
Could you submit a pull request to fix it, cos I know nothing about python. |
@chendachao even if you do not know anything about python, you could be a big help in sketching how this functionality should work. Here's an overview of what I think you should do to get this "fixed":
|
An alternative approach would be to re-use the existing config key names ( That way, people who used the Most people would probably leave the default untouched (meaning they didn't overwrite the values in their own The only negative impact would be people who understood the meaning of the config keys as they are currently specified in the docs (see |
Sorry, I think it's irresponsible to make a PR if I don't understand the source code. Could you make that changes? |
…utes These changes provide full control over the management of "allowed-elements" and "allowed-attributes" through the configuration file. Fixes isso-comments#751
…utes These changes provide full control over the management of "allowed-elements" and "allowed-attributes" through the configuration file. Fixes isso-comments#751
…utes These changes provide full control over the management of "allowed-elements" and "allowed-attributes" through the configuration file. Fixes isso-comments#751
…utes These changes provide full control over the management of "allowed-elements" and "allowed-attributes" through the configuration file. Fixes isso-comments#751
Added new configuration option "strictly-allowed-html-elements" to specify only allowed HTML tags in the generated output. Fixes isso-comments#751
- Added new configuration option "strictly-allowed-html-elements" to specify only allowed HTML tags in the generated output. - Allowed "mark" and "u" elements for "highlight" and "underline" Markup extensions. - Updated "allowed-elements" in configuration files to include "tr". Fixes isso-comments#751
I found an issue about the markup config, any suggestions would be appreciate.
Step1, add below code to isso server config,
Step2, In the website where you refer isso as comment fn, add below comment:
<a href=http://evil.com>clickmetochangethispassword</a>
Result: the comment was successfully rendered.
Expect: transform the a markup.
The text was updated successfully, but these errors were encountered: