Skip to content
This repository was archived by the owner on Nov 10, 2021. It is now read-only.
This repository was archived by the owner on Nov 10, 2021. It is now read-only.

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

@18601673727

Description

@18601673727

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions