Issues

ZF-8469: Zend_Rest_Route::assemble() does not implement the $encode parameter

Issue Type: Bug Created: 2009-12-04T10:03:53.000+0000 Last Updated: 2009-12-21T17:28:35.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Bradley Holt (bradley.holt) Assignee: Luke Crouch (lcrouch) Tags: - Zend_Rest_Route

Related issues: Attachments: - ZF-8469.patch

Description

Zend_Rest_Route::assemble() does not implement the $encode parameter (it is in the method signature but never used). This is sometimes needed when using the index action with parameters. Please encode values when the $encode parameter is set to true. Also consider encoding the id value when $encode is set to true (although this is probably needed less often).

Comments

Posted by Bradley Holt (bradley.holt) on 2009-12-04T10:06:34.000+0000

This patch will encode values (other than id) when the $encode parameter is set to true.

Posted by Bradley Holt (bradley.holt) on 2009-12-04T10:30:02.000+0000

Also, Zend_Rest_Route::match() does not URL decode values. URL parameters should be decoded.

Posted by Bradley Holt (bradley.holt) on 2009-12-05T10:44:40.000+0000

My last comment seems to be not entirely correct. It appears that values do get URL decoded (but I don't see where) however IDs do not get URL decoded. Consider URL decoding ID values.

Posted by Luke Crouch (lcrouch) on 2009-12-21T17:28:34.000+0000

added urlencode to assemble() param values, and urldecode of id param values to match()

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts