postgresql_privs: add trust_input parameter (#177)

* postgresql_privs: add trust_input parameter

* add changelog fragment
This commit is contained in:
Andrew Klychkov 2020-04-20 09:01:42 +03:00 committed by GitHub
parent 25684ce2d7
commit 764cae9f33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 45 additions and 1 deletions

View file

@ -191,6 +191,9 @@ def check_input(module, *args):
if is_input_dangerous(e):
dangerous_elements.append(e)
elif elem is None or isinstance(elem, bool):
pass
else:
elem = str(elem)
if is_input_dangerous(elem):