Re-allow templating of complex_args, but count params to prevent injection

Fixes #8810
This commit is contained in:
James Cammarata
2014-09-04 16:00:02 -05:00
parent 8bafc646cb
commit 8cc3543918
4 changed files with 45 additions and 21 deletions

View File

@@ -1268,6 +1268,12 @@ def list_difference(a, b):
result.append(x)
return result
def contains_vars(data):
'''
returns True if the data contains a variable pattern
'''
return "$" in data or "{{" in data
def safe_eval(expr, locals={}, include_exceptions=False):
'''
This is intended for allowing things like: