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 '
'; } }