Age | Commit message (Collapse) | Author | Files | Lines |
|
Version 3.1.0:
**Features**
* Add recognized_tags argument to the linkify Linker class. This
fixes issues when linkifying on its own and having some tags get escaped.
It defaults to a list of HTML5 tags.
**Bug fixes**
* Add six>=1.9 to requirements.
* Fix cases where attribute names could have invalid characters in them.
* Fix problems with LinkifyFilter not being able to match links
across &.
* Fix InputStreamWithMemory when the BleachHTMLParser is
parsing meta tags.
* Fix doctests.
|
|
less).
|
|
Version 3.0.2:
Bug fixes
Merge Characters tokens after sanitizing them. This fixes issues in the
LinkifyFilter where it was only linkifying parts of urls.
Version 3.0.1:
Features
Support Python 3.7. It supported Python 3.7 just fine, but we added 3.7 to
the list of Python environments we test so this is now officially supported.
Bug fixes
Fix list object has no attribute lower in clean.
Fix abbr getting escaped in linkify.
Version 3.0.0:
Backwards incompatible changes
A bunch of functions were moved from one module to another.
These were moved from bleach.sanitizer to bleach.html5lib_shim:
convert_entity
convert_entities
match_entity
next_possible_entity
BleachHTMLSerializer
BleachHTMLTokenizer
BleachHTMLParser
These functions and classes weren't documented and aren't part of the
public API, but people read code and might be using them so we're
considering it an incompatible API change.
If you're using them, you'll need to update your code.
Features
Bleach no longer depends on html5lib. html5lib==1.0.1 is now vendored into
Bleach. You can remove it from your requirements file if none of your other
requirements require html5lib.
This means Bleach will now work fine with other libraries that depend on
html5lib regardless of what version of html5lib they require.
Bug fixes
Fixed tags getting added when using clean or linkify. This was a
long-standing regression from the Bleach 2.0 rewrite.
Fixed <isindex> getting replaced with a string. Now it gets escaped or
stripped depending on whether it's in the allowed tags or not.
|
|
Version 2.1.4:
Dropped support for Python 3.3.
Handle ambiguous ampersands in correctly.
|
|
Version 2.1.3:
**Security fixes**
* Attributes that have URI values weren't properly sanitized if the
values contained character entities. Using character entities, it
was possible to construct a URI value with a scheme that was not
allowed that would slide through unsanitized.
This security issue was introduced in Bleach 2.1. Anyone using
Bleach 2.1 is highly encouraged to upgrade.
**Bug fixes**
* Fixed some other edge cases for attribute URI value sanitizing and
improved testing of this code.
|
|
Version 2.1.2:
Bug fixes
* Support html5lib-python 1.0.1.
* Add deprecation warning for supporting html5lib-python < 1.0.
* Switch to semver.
|
|
Version 2.1.1:
**Bug fixes**
* Fix ``setup.py`` opening files when ``LANG=``.
Version 2.1:
**Security fixes**
* Convert control characters (backspace particularly) to "?" preventing
malicious copy-and-paste situations.
See `<https://github.com/mozilla/bleach/issues/298>`_ for more details.
This affects all previous versions of Bleach. Check the comments on that
issue for ways to alleviate the issue if you can't upgrade to Bleach 2.1.
**Backwards incompatible changes**
* Redid versioning. ``bleach.VERSION`` is no longer available. Use the string
version at ``bleach.__version__`` and parse it with
``pkg_resources.parse_version``.
* clean, linkify: linkify and clean should only accept text types
* clean, linkify: accept only unicode or utf-8-encoded str
**Bug fixes**
* ``bleach.clean()`` no longer unescapes entities including ones that are missing
a ``;`` at the end which can happen in urls and other places.
* linkify: fix http links inside of mailto links
* clarify security policy in docs
* fix dependency specification for html5lib 1.0b8, 1.0b9, and 1.0b10
* add Bleach vs. html5lib comparison to README
* fix KeyError exceptions on tags without href attr
* add test website and scripts to test ``bleach.clean()`` output in browser
|
|
* Supports Python 3.6.
* Supports html5lib >= 0.99999999 (8 9s).
* There's a ``bleach.sanitizer.Cleaner`` class that you can instantiate with your
favorite clean settings for easy reuse.
* There's a ``bleach.linkifier.Linker`` class that you can instantiate with your
favorite linkify settings for easy reuse.
* There's a ``bleach.linkifier.LinkifyFilter`` which is an htm5lib filter that
you can pass as a filter to ``bleach.sanitizer.Cleaner`` allowing you to clean
and linkify in one pass.
* ``bleach.clean`` and friends can now take a callable as an attributes arg value.
* Tons of bug fixes.
* Cleaned up tests.
* Documentation fixes.
|
|
**Backwards incompatible changes**
- clean: The list of ``ALLOWED_PROTOCOLS`` now defaults to http, https and
mailto. Previously it was a long list of protocols something like ed2k, ftp,
http, https, irc, mailto, news, gopher, nntp, telnet, webcal, xmpp, callto,
feed, urn, aim, rsync, tag, ssh, sftp, rtsp, afs, data.
**Changes**
- clean: Added ``protocols`` to arguments list to let you override the list of
allowed protocols. Thank you, Andreas Malecki!
- linkify: Fix a bug involving periods at the end of an email address. Thank you,
Lorenz Schori!
- linkify: Fix linkification of non-ascii ports. Thank you Alexandre, Macabies!
- linkify: Fix linkify inappropriately removing node tails when dropping nodes.
- Fixed a test that failed periodically.
- Switched from nose to py.test.
- Add test matrix for all supported Python and html5lib versions.
- Limit to html5lib ``>=0.999,!=0.9999,!=0.99999,<0.99999999`` because 0.9999
and 0.99999 are busted.
- Add support for ``python setup.py test``.
|
|
|
|
Problems found locating distfiles:
Package haskell-cgi: missing distfile haskell-cgi-20001206.tar.gz
Package nginx: missing distfile array-var-nginx-module-0.04.tar.gz
Package nginx: missing distfile encrypted-session-nginx-module-0.04.tar.gz
Package nginx: missing distfile headers-more-nginx-module-0.261.tar.gz
Package nginx: missing distfile nginx_http_push_module-0.692.tar.gz
Package nginx: missing distfile set-misc-nginx-module-0.29.tar.gz
Package nginx-devel: missing distfile echo-nginx-module-0.58.tar.gz
Package nginx-devel: missing distfile form-input-nginx-module-0.11.tar.gz
Package nginx-devel: missing distfile lua-nginx-module-0.9.16.tar.gz
Package nginx-devel: missing distfile nginx_http_push_module-0.692.tar.gz
Package nginx-devel: missing distfile set-misc-nginx-module-0.29.tar.gz
Package php-owncloud: missing distfile owncloud-8.2.0.tar.bz2
Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden). All existing
SHA1 digests retained for now as an audit trail.
|
|
Version 1.4
-----------
- Update linkify to use etree type Treeewalker instead of simpletree.
- Updated html5lib to version >= 0.999.
- Update all code to be compatible with Python 3 and 2 using six.
- Switch to Apache License.
Version 1.3
-----------
- Used by Python 3-only fork.
Version 1.2.2
-------------
- Pin html5lib to version 0.95 for now due to major API break.
Version 1.2.1
-------------
- clean() no longer considers "feed:" an acceptable protocol due to
inconsistencies in browser behavior.
Version 1.2
-----------
- linkify() has changed considerably. Many keyword arguments have been
replaced with a single callbacks list. Please see the documentation
for more information.
- Bleach will no longer consider unacceptable protocols when linkifying.
- linkify() now takes a tokenizer argument that allows it to skip
sanitization.
- delinkify() is gone.
- Removed exception handling from _render. clean() and linkify() may now
throw.
- linkify() correctly ignores case for protocols and domain names.
- linkify() correctly handles markup within an <a> tag.
|
|
* Add missing dependencies.
Thank you, joerg@.
|
|
Bleach is an HTML sanitizing library that escapes or strips markup
and attributes based on a white list. Bleach can also linkify text
safely, applying filters that Django's ``urlize`` filter cannot,
and optionally setting ``rel`` attributes, even on links already
in the text.
|