faille csrf

This commit is contained in:
fredtempez 2019-01-03 14:12:14 +01:00
parent 0718a8e6db
commit a15efd9b1a
1 changed files with 36 additions and 29 deletions

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
]);
}
}
/**