Skip to content

Commit cd00ae2

Browse files
committed
Convert form action to lowercase before comparing with literal
1 parent ac58ed1 commit cd00ae2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

curl-auth-csrf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def main():
189189
# submit login form
190190
####################
191191

192-
if login_form.method == "get":
192+
if login_form.method.lower() == "get":
193193
logging.info('Performing GET on form submission ...')
194194
result = session.get(action_url, data, verify=False, headers={'Referer': result.url, 'User-Agent': args.user_agent_str})
195195
else:

0 commit comments

Comments
 (0)