Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Url with a param equal to 0 is not available in controller #774

Closed
mycuisine opened this Issue · 2 comments

3 participants

@mycuisine

Here is the connected route
Router::connect('/{:controller}/{:action}/{:id:[0-9]+}');

Url /post/edit/0 match but $this->request->id is not available in controller

Maybe the problem is in lithium\net\http\Route.php line 235, array_filter without any callback delete all entries equals to false

@mikegreiling mikegreiling referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@mikegreiling mikegreiling referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@mikegreiling mikegreiling referenced this issue from a commit in pixelcog/lithium
@mikegreiling mikegreiling fix for issue #774
ensure explicit request variables with value 0 are not treated as though they are undefined.
6465b22
@mikegreiling

you can close this one now I think

@nateabele
Owner

Totally. Thanks dude.

@nateabele nateabele closed this
@Ciaro Ciaro referenced this issue from a commit
@mikegreiling mikegreiling fix for issue #774
ensure explicit request variables with value 0 are not treated as though they are undefined.
1694dcd
@Ciaro Ciaro referenced this issue from a commit
@mikegreiling mikegreiling fix for issue #774
ensure explicit request variables with value 0 are not treated as though they are undefined.
7b9b615
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.