Closed btbonval closed 9 years ago
$ grep -r "bleach_whitelist"
karmaworld/apps/notes/sanitizer.py:import bleach_whitelist
karmaworld/apps/notes/sanitizer.py: allowed_elements = bleach_whitelist.markdown_tags
karmaworld/apps/notes/sanitizer.py: allowed_elements = bleach_whitelist.generally_xss_safe
karmaworld/apps/notes/sanitizer.py: allowed_css_properties = bleach_whitelist.all_styles
Testing in an interpreter, only generally_xss_safe
fails.
Looks like generally_xss_safe
is in the upstream repo of @yourcelf but has not been pushed to pip
?
pip install --upgrade bleach_whitelist
fixed the issue.
Collecting bleach-whitelist from https://pypi.python.org/packages/source/b/bleach-whitelist/bleach-whitelist-0.0.7.tar.gz#md5=9bad5e8990408c6ba9189e3c02a3fee5
Downloading bleach-whitelist-0.0.7.tar.gz
...
Not sure why pip -r
didn't run the upgrade properly? The requirements.txt
file is pretty explicit on the version.
Strange.. I thought pip -r requirements.txt
would do upgrading if needed. I know pip install
won't upgrade unless you also do pip install --upgrade
.