mirror of https://github.com/ansible/ansible.git
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 #21452pull/18734/merge
parent
e89259dbd0
commit
99fd2328af
Loading…
Reference in New Issue