Skip to content

Commit 1e1d42f

Browse files
committed
fix a mistake :(
1 parent 7aff007 commit 1e1d42f

File tree

1 file changed

+1
-1
lines changed
  • python/ql/src/experimental/Security/CWE-287-ConstantSecretKey/examples

1 file changed

+1
-1
lines changed

python/ql/src/experimental/Security/CWE-287-ConstantSecretKey/examples/config3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
# it is good to check default value always, maybe
88
# the user responsible for setup the application make a mistake
99
# and has not changed the default SECRET_KEY value
10-
SECRET_KEY = os.getenv('envKey') # A_CONSTANT_SECRET
10+
SECRET_KEY = os.getenv('envKey', "A_CONSTANT_SECRET") # A_CONSTANT_SECRET
1111
if SECRET_KEY == "A_CONSTANT_SECRET":
1212
raise "not possible"

0 commit comments

Comments
 (0)