mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
Python: Add TurboGears templating example
This commit is contained in:
@@ -2,3 +2,4 @@
|
||||
| test.py:13:5:13:50 | Function ok_validated |
|
||||
| test.py:18:5:18:57 | Function partially_validated |
|
||||
| test.py:22:5:22:51 | Function not_validated |
|
||||
| test.py:26:5:26:28 | Function with_template |
|
||||
|
||||
@@ -2,3 +2,4 @@
|
||||
| test.py:14 | BinaryExpr | externally controlled string |
|
||||
| test.py:19 | BinaryExpr | externally controlled string |
|
||||
| test.py:23 | BinaryExpr | externally controlled string |
|
||||
| test.py:27 | Dict | {externally controlled string} |
|
||||
|
||||
@@ -21,3 +21,7 @@ class RootController(TGController):
|
||||
@expose()
|
||||
def not_validated(self, a=None, b=None, *args):
|
||||
return 'Values: %s, %s, %s' % (a, b, args)
|
||||
|
||||
@expose("<template_path>")
|
||||
def with_template(self):
|
||||
return {'template_var': 'foo'}
|
||||
|
||||
Reference in New Issue
Block a user