ZF-3750: getParams() ignores Zend_Controller_Request::setParamSources()
Description
I tried to set param sources for _GET only. bug Zend_Controller_Front::getParams() still returns _POST variables
try following code
$_POST = array(); $_POST['test'] = 'ZF BUGGED!'; var_dump($this->_request->getParamSources()); $this->_request->setParamSources(array('_GET')); var_dump($this->_request->getParamSources()); $params = $this->_request->getParams(); var_dump($params);
Comments
Posted by Johannes Wenzel (johannes.wenzel) on 2009-02-04T10:26:39.000+0000
This Patch fixes the problem. Please apply it to the trunk. Thank you very much and keep on the good work! :-)
Posted by Mike Willbanks (digitalstruct) on 2009-06-24T21:40:42.000+0000
Added patch. This patch is a slight update from the prior patch provided in terms of whitespace and a fix in the comment. Also added a test case for this issue.
Posted by Matthew Weier O'Phinney (matthew) on 2009-11-19T16:30:17.000+0000
Patch applied and committed to trunk and 1.9 release branch -- thanks, Mike!