-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix py/url-redirection by replacing request.referrer by get_redirect() #34237
Fix py/url-redirection by replacing request.referrer by get_redirect() #34237
Conversation
Does this also need to call |
Yep. I thinl it should, otherwise back/resubmit button wil skip over it. |
Changed milestone to 2.7.2, this is security related and can be released as bugfix I believe asap. |
I used the same milestone as #33932 because the change is not released yet. But it looks like the other PR is a bug-fix too. |
Oh I see, I believe 33932 started as a bug fix but ended up adding new options and is now more of an ‘improvement’. Putting back 2.8.0, sorry. |
redirect(location=request.referrer)
is not safe, and we don't use it in the webserver, instead we useBaseView.get_redirect()
to get the original the previous url.Is there any specific reason to use request.referrer in #33932? (I don't think so)
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in newsfragments.