codeigniter-restserver-resources icon indicating copy to clipboard operation
codeigniter-restserver-resources copied to clipboard

[key.php] Why use _put() in a post function?

Open 18601673727 opened this issue 11 years ago • 0 comments

Line: 39

// If no key level provided, give them a rubbish one
$level = $this->_put('level') ? $this->_put('level') : 1;
$ignore_limits = $this->_put('ignore_limits') ? $this->_put('ignore_limits') : 1;

I changed it into:

// If no key level provided, give them a rubbish one
$level = $this->_post('level') ? $this->_post('level') : 1;
$ignore_limits = $this->_post('ignore_limits') ? $this->_post('ignore_limits') : 1;

Now I can get a not rubbish key, Is this a bug?

18601673727 avatar Nov 26 '13 09:11 18601673727