Make sure we don't process the nonce as a Data value

This commit is contained in:
Flavio Copes
2015-11-17 23:31:58 +01:00
parent b8cc2639c4
commit 1c8a33f7a9

View File

@@ -92,6 +92,7 @@ class AdminController
$this->admin->setMessage('Unauthorized', 'error');
return false;
}
unset($this->post['admin-nonce']);
} else {
if ($this->task == 'logout') {
$nonce = $this->grav['uri']->param('logout-nonce');