We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed60d16 commit 7b51b91Copy full SHA for 7b51b91
python/ql/test/experimental/query-tests/Security/CWE-347/python_jwt.py
@@ -2,12 +2,11 @@
2
3
# GOOD
4
5
-token1 = "1"
6
-python_jwt.process_jwt(token1)
7
-python_jwt.verify_jwt(token1, "key", "HS256")
+def good1(token):
+ python_jwt.process_jwt(token)
+ python_jwt.verify_jwt(token, "key", "HS256")
8
9
# BAD
10
11
-# no call to verify_jwt
12
-token2 = "123"
13
-python_jwt.process_jwt(token2)
+def bad(token):
0 commit comments