Development branch of AbstractRestfulController->processPostData() doesn't handle Content-Type application/x-www-form-urlencoded correctly #3392

Closed
codeinabox opened this Issue Jan 9, 2013 · 2 comments

Comments

Projects
None yet
2 participants

The development branch of AbstractRestfulController->processPostData() doesn't correctly handle Content-Type application/x-www-form-urlencoded correctly

When checking the request in requestHasContentType(), it incorrectly checks 'Accept' not the submitted content type defined in Content-Type

https://github.com/zendframework/zf2/blob/develop/library/Zend/Mvc/Controller/AbstractRestfulController.php

This is also broken in processBodyContent()

Owner

weierophinney commented Jan 22, 2013

This is fixed as of #3442 - that PR updated requestHasContentType to correctly use the Content-Type header, and to test against only the media type when doing so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment