diff options
author | Toshio Kuratomi <a.badger@gmail.com> | 2017-02-15 08:53:58 -0800 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2017-02-15 11:59:42 -0800 |
commit | 1262e5fdca0bf4bef68a22c03f1afed80127ddfc (patch) | |
tree | 3e8f46803dca08ea0d0310a86ae0f3bcfa6464e5 /contrib | |
parent | cb93ecaef9c0a9b3d3328b5158e1d54902b8d714 (diff) | |
download | ansible-1262e5fdca0bf4bef68a22c03f1afed80127ddfc.tar.gz |
Fix hash filter for non-ascii strings and Python3
hashlib hashes operate on byte strings. When given a text string on
Python3, hashlib backtraces. When given a text string on Python2,
hashlib will backtrace if the string contains non-ascii characters.
Encode the text string to utf-8 prior to hashing to avoid this problem.
Fixes #21452
(cherry picked from commit 99fd2328af598e35cb29f72694c8ea28c8469707)
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions