Skip to content

Conversation

pascaldevink
Copy link

The redirect() method is open to open redirects if user input is directly passed as parameter. This is of course as intended, and most people would know directly passing user input is never wise, but I think that warning developers can not be done enough.

I hope this message is clear, but please let me know of any better wording or if the tip context is the right one to use here.

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 I agree with this because the Symfony Docs has always been about making our readers better developers, not only better Symfony developers.

I propose to display this as a caution instead of a tip and to remove the explicit reference to OWASP. If you don't agree with these changes, please tell us. Thanks!

@xabbuh
Copy link
Member

xabbuh commented Nov 22, 2016

Thank you @pascaldevink.

xabbuh added a commit that referenced this pull request Nov 22, 2016
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #7056). Discussion ---------- Warn user about open redirects The `redirect()` method is open to open redirects if user input is directly passed as parameter. This is of course as intended, and most people would know directly passing user input is never wise, but I think that warning developers can not be done enough. I hope this message is clear, but please let me know of any better wording or if the `tip` context is the right one to use here. Commits ------- 8f77746 Reworded the caution about open redirects 4a4a5fa Warn user about open redirects
@xabbuh xabbuh closed this Nov 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

4 participants