Details
-
Type:
Patch
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.6.0RC1
-
Fix Version/s: 1.9.6
-
Component/s: Zend_Controller
-
Labels:None
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);
This Patch fixes the problem. Please apply it to the trunk. Thank you very much and keep on the good work!