diff options
author | Jason Madden <jamadden@gmail.com> | 2018-01-11 07:59:12 -0600 |
---|---|---|
committer | Jason Madden <jamadden@gmail.com> | 2018-01-11 07:59:12 -0600 |
commit | 667f223759fa9566c1cc0a77c466a8a6e8f63e1c (patch) | |
tree | 0c515890926cc32f4d00278fee3a7ba28d12374a /CHANGES.rst | |
parent | 84685702b7de3afc48018ad6ad4d29967d963050 (diff) | |
download | zope-security-667f223759fa9566c1cc0a77c466a8a6e8f63e1c.tar.gz |
Fixes #10: Pure-python proxies don't check __unicode__
Just like the C implementation. Note that ``__str__`` is checked for
both implementations on both Python 2 and 3, but if there is no
``__unicode__`` method defined, Python 2's automatic fallback to
``__str__`` is **not** checked when ``unicode`` is called.
Add tests for these cases.
Diffstat (limited to 'CHANGES.rst')
-rw-r--r-- | CHANGES.rst | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/CHANGES.rst b/CHANGES.rst index 70ea0df..186a474 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,7 +5,13 @@ 4.2.2 (unreleased) ================== -- Nothing changed yet. +- Make the pure-Python proxy on Python 2 *not* check permissions for + ``__unicode__`` just like the C implementation. Note that + ``__str__`` is checked for both implementations on both Python 2 and + 3, but if there is no ``__unicode__`` method defined, Python 2's + automatic fallback to ``__str__`` is **not** checked when + ``unicode`` is called. See `issue 10 + <https://github.com/zopefoundation/zope.security/issues/10>`_. 4.2.1 (2017-11-30) |