zendframework / zend-router

Standalone routing implementation for HTTP and console requests
BSD 3-Clause "New" or "Revised" License
32 stars 20 forks source link

Ensure wildcard route assembly skips non-scalar values #47

Closed weierophinney closed 6 years ago

weierophinney commented 6 years ago

When routing to middleware, you may provide an array of middleware. In such cases, the wildcard router was attempting to rawurlencode() that array, leading to a fatal error.

This patch modifies the logic to skip non-scalar values.

Fixes #46