From 3b8a2d5b03fd639ee6496df5d9b54d000fc60d0f Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 20 Jun 2023 19:58:29 +0200 Subject: [PATCH] Nettoyage session dans GET --- core/class/layout.class.php | 4 ++-- core/module/page/view/edit/edit.php | 4 ++-- core/module/theme/view/admin/admin.php | 2 +- core/module/theme/view/advanced/advanced.php | 2 +- core/module/theme/view/manage/manage.php | 2 +- module/gallery/view/config/config.php | 4 ++-- module/gallery/view/edit/edit.php | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/core/class/layout.class.php b/core/class/layout.class.php index 950910d7..c8104dcf 100644 --- a/core/class/layout.class.php +++ b/core/class/layout.class.php @@ -976,7 +976,7 @@ class layout extends common $this->getUser('permission','page', 'duplicate') ) { $leftItems .= '
  • ' . template::ico('clone', [ - 'href' => helper::baseUrl() . 'page/duplicate/' . $this->getUrl(0) . '&csrf=' . $_SESSION['csrf'], + 'href' => helper::baseUrl() . 'page/duplicate/' . $this->getUrl(0), 'help' => 'Dupliquer la page' ]) . '
  • '; @@ -986,7 +986,7 @@ class layout extends common $this->getUser('permission','page', 'delete') ) { $leftItems .= '
  • ' . template::ico('trash', [ - 'href' => helper::baseUrl() . 'page/delete/' . $this->getUrl(0) . '&csrf=' . $_SESSION['csrf'], + 'href' => helper::baseUrl() . 'page/delete/' . $this->getUrl(0), 'help' => 'Supprimer la page', 'id' => 'pageDelete' ]) diff --git a/core/module/page/view/edit/edit.php b/core/module/page/view/edit/edit.php index 2f4be106..16963ef9 100644 --- a/core/module/page/view/edit/edit.php +++ b/core/module/page/view/edit/edit.php @@ -21,14 +21,14 @@
    'buttonRed', - 'href' => helper::baseUrl() . 'page/delete/' . $this->getUrl(2) . '&csrf=' . $_SESSION['csrf'], + 'href' => helper::baseUrl() . 'page/delete/' . $this->getUrl(2), 'value' => template::ico('trash'), 'help' => 'Effacer la page' ]); ?>
    helper::baseUrl() . 'page/duplicate/' . $this->getUrl(2) . '&csrf=' . $_SESSION['csrf'], + 'href' => helper::baseUrl() . 'page/duplicate/' . $this->getUrl(2), 'value' => template::ico('clone'), 'help' => 'Dupliquer la page' ]); ?> diff --git a/core/module/theme/view/admin/admin.php b/core/module/theme/view/admin/admin.php index 103ad8c9..f7337524 100644 --- a/core/module/theme/view/admin/admin.php +++ b/core/module/theme/view/admin/admin.php @@ -17,7 +17,7 @@
    'buttonRed', - 'href' => helper::baseUrl() . 'theme/reset/admin' . '&csrf=' . $_SESSION['csrf'], + 'href' => helper::baseUrl() . 'theme/reset/admin', 'value' => template::ico('cancel'), 'help' => 'Réinitialiser avec le thème par défaut' ]); ?> diff --git a/core/module/theme/view/advanced/advanced.php b/core/module/theme/view/advanced/advanced.php index edb4b592..f75a0d4c 100644 --- a/core/module/theme/view/advanced/advanced.php +++ b/core/module/theme/view/advanced/advanced.php @@ -9,7 +9,7 @@
    helper::baseUrl() . 'theme/reset/custom' . '&csrf=' . $_SESSION['csrf'], + 'href' => helper::baseUrl() . 'theme/reset/custom', 'class' => 'buttonRed', 'value' => template::ico('cancel'), 'help' => 'Réinitialiser la feuille de style' diff --git a/core/module/theme/view/manage/manage.php b/core/module/theme/view/manage/manage.php index 0a17edd7..66c648da 100644 --- a/core/module/theme/view/manage/manage.php +++ b/core/module/theme/view/manage/manage.php @@ -10,7 +10,7 @@
    'buttonRed', - 'href' => helper::baseUrl() . 'theme/reset/manage' . '&csrf=' . $_SESSION['csrf'], + 'href' => helper::baseUrl() . 'theme/reset/manage', 'value' => template::ico('cancel'), 'help' => 'Réinitialiser avec le thème par défaut' ]); ?> diff --git a/module/gallery/view/config/config.php b/module/gallery/view/config/config.php index 9e29e0d4..a1f4ac25 100644 --- a/module/gallery/view/config/config.php +++ b/module/gallery/view/config/config.php @@ -9,13 +9,13 @@
    helper::baseUrl() . $this->getUrl(0) . '/option/galleries/' . $_SESSION['csrf'], + 'href' => helper::baseUrl() . $this->getUrl(0) . '/option/galleries/', 'value' => template::ico('sliders') ]); ?>
    helper::baseUrl() . $this->getUrl(0) . '/theme/' . $_SESSION['csrf'], + 'href' => helper::baseUrl() . $this->getUrl(0) . '/theme/', 'value' => template::ico('brush') ]); ?>
    diff --git a/module/gallery/view/edit/edit.php b/module/gallery/view/edit/edit.php index 4731108f..f80d3013 100644 --- a/module/gallery/view/edit/edit.php +++ b/module/gallery/view/edit/edit.php @@ -9,7 +9,7 @@
    helper::baseUrl() . $this->getUrl(0) . '/option/gallery/' . $this->getUrl(2) . '/'. $_SESSION['csrf'], + 'href' => helper::baseUrl() . $this->getUrl(0) . '/option/gallery/' . $this->getUrl(2), 'value' => template::ico('sliders') ]); ?>