From 7f8dc5401ba82136a676aae2b6c322dc29eaf37b Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Tue, 12 Mar 2024 13:11:03 +0000 Subject: [PATCH] Update file editpage.php --- html/editpage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/editpage.php b/html/editpage.php index 6cdf30f5..f26a3c63 100644 --- a/html/editpage.php +++ b/html/editpage.php @@ -21,7 +21,7 @@ if(isset($_GET['article']) && filter_var($_GET['article'], FILTER_VALIDATE_INT)) } } -if(isset($_GET['page']) && strpos($_GET['page'], "..") == false) { +if(isset($_GET['page']) && strpos($_GET['page'], "..") == false && $_SESSION['role'] >= 3) { if(file_exists($wwwroot . "/content/" . $_GET['page'] . ".md")){ $fichier = $wwwroot . "/content/" . $_GET['page'] . ".md"; $filename = $_GET['page']; @@ -195,7 +195,7 @@ if(isset($fichier)) { echo ''; $filetitle = $resultat[0]['titre']; - echo '
'; + echo '
'; echo '
'; } }