Skip to content

Conversation

tonysm
Copy link
Contributor

@tonysm tonysm commented Oct 18, 2019

Changed

  • Adds support for relative signed URLs in the ValidateSignature middleware

* @return \Illuminate\Http\Response
*
* @throws \Illuminate\Routing\Exceptions\InvalidSignatureException
*/
public function handle($request, Closure $next)
public function handle($request, Closure $next, $relative = null)
Copy link
Contributor

Choose a reason for hiding this comment

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

This breaks compatibility with L6. It would be better to use $relative = func_get_arg(3); if the middleware handling supports it.

Copy link
Member

Choose a reason for hiding this comment

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

Heya. This would indeed need to go to master because it breaks the message signature.

Copy link
Contributor Author

@tonysm tonysm Oct 19, 2019

Choose a reason for hiding this comment

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

so I should change the base to master and aim for L7?

Copy link
Contributor

Choose a reason for hiding this comment

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

Either that or make it compatible with L6, as I'm pretty sure @driesvints meant the method sinature.

Have a look at accessing function parameters without changing signature.

If you chose the latter don't forget to send another pr to change the signature when this was merged.

@driesvints driesvints changed the title Allow using the signed route middleware with relative signed URLs [6.x] Allow using the signed route middleware with relative signed URLs Oct 18, 2019
@taylorotwell
Copy link
Member

I am closing this pull request because it lacks sufficient explanation, tests, or both. It is difficult for us to merge pull requests without these things because the change may introduce breaking changes to the framework.

Feel free to re-submit your change with a thorough explanation of the feature and tests - integration tests are preferred over unit tests. Please include it's benefit to end users; the reasons it does not break any existing features; how it makes building web applications easier, etc.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants