Wenzil / mdx_bleach

Python-Markdown extension to sanitize the output of untrusted Markdown documents.
MIT License
13 stars 8 forks source link

fix errant init definition #3

Closed lphoward closed 7 years ago

lphoward commented 7 years ago

Sincerest apologies for a bug I introduced when adding support for protocols in bleach clean.

In the init method of BleachPostprocessor, I inexcusably set self.protocols to a tuple by accidentally appending a comma to the definition. This tuple is then passed to bleach clean, causing its allowed protocols checks to fail.

Again, I most sincerely apologize for this bug and for causing you work when I was just trying to help.

Regards, lph

Wenzil commented 7 years ago

I appreciate the work you put in this. Thanks for contributing!