Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page Plugin Bug? #115

Closed
KANekT opened this issue May 11, 2013 · 0 comments
Closed

Page Plugin Bug? #115

KANekT opened this issue May 11, 2013 · 0 comments
Labels

Comments

@KANekT
Copy link

KANekT commented May 11, 2013

/**
 * _pageExpandAjax
 */
public static function _pageExpandAjax()
{
    if (Request::post('slug')) {
        if (Security::check(Request::post('token'))) {
            $pages = new Table('pages');
            $pages->updateWhere('[slug="'.Request::post('slug').'"]', array('expand' => Request::post('expand')));
            Request::shutdown();
        } else { die('12Request was denied because it contained an invalid security token. Please refresh the page and try again.'); }
    }
}

Исправьте, а то если кто в своем плагине передаст Request::post('slug'), получит ошибку

Request was denied because it contained an invalid security token. Please refresh the page and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants