faille CSRF

This commit is contained in:
fredtempez 2019-01-03 14:15:36 +01:00
parent fdf9885d10
commit 957d7acfd7

View File

@ -77,6 +77,7 @@ class page extends common {
* Suppression
*/
public function delete() {
if($this->isPost()) {
// La page n'existe pas
if($this->getData(['page', $this->getUrl(2)]) === null) {
// Valeurs en sortie
@ -111,6 +112,12 @@ class page extends common {
'state' => true
]);
}
} else {
// Valeurs en sortie
$this->addOutput([
'access' => false
]);
}
}
/**