mirror of
https://github.com/xcat2/confluent.git
synced 2025-02-05 05:22:08 +00:00
Prevent GET from indicating a non-idempotent opreation
This could bypass CSRF protection in theory.
This commit is contained in:
parent
bc03da47af
commit
f97fd3105f
@ -416,7 +416,7 @@ def resourcehandler_backend(env, start_response):
|
||||
reqtype = env['CONTENT_TYPE']
|
||||
operation = opmap[env['REQUEST_METHOD']]
|
||||
querydict = _get_query_dict(env, reqbody, reqtype)
|
||||
if 'restexplorerop' in querydict:
|
||||
if operation != 'retrieve' and 'restexplorerop' in querydict:
|
||||
operation = querydict['restexplorerop']
|
||||
del querydict['restexplorerop']
|
||||
authorized = _authorize_request(env, operation)
|
||||
|
Loading…
x
Reference in New Issue
Block a user