forked from ZwiiCMS-Team/ZwiiCMS
faille CSRF
This commit is contained in:
parent
fdf9885d10
commit
957d7acfd7
@ -77,6 +77,7 @@ class page extends common {
|
|||||||
* Suppression
|
* Suppression
|
||||||
*/
|
*/
|
||||||
public function delete() {
|
public function delete() {
|
||||||
|
if($this->isPost()) {
|
||||||
// La page n'existe pas
|
// La page n'existe pas
|
||||||
if($this->getData(['page', $this->getUrl(2)]) === null) {
|
if($this->getData(['page', $this->getUrl(2)]) === null) {
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
@ -111,6 +112,12 @@ class page extends common {
|
|||||||
'state' => true
|
'state' => true
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// Valeurs en sortie
|
||||||
|
$this->addOutput([
|
||||||
|
'access' => false
|
||||||
|
]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user