Skip to content

Commit e8d05fb

Browse files
authored
Merge pull request #75 from occam-ra/fix-action-logic
Correct logic for testing whether actions are valid
2 parents aa7b5dc + 20fafe4 commit e8d05fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/weboccam.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def printForm(formFields):
201201
untrusted_action = formFields.get("action", "")
202202

203203
# validate the action by checking for it's presence in the allowlist
204-
if untrusted_action not in valid_actions:
204+
if untrusted_action in valid_actions:
205205
action = untrusted_action
206206
else:
207207
# exit if the action is invalid

0 commit comments

Comments
 (0)