From 4624b3cc05abb169bad719409d32309e03d987c9 Mon Sep 17 00:00:00 2001 From: Thomas CHAZOT Date: Tue, 10 Jan 2023 21:04:34 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'api-rest/index.php?= =?UTF-8?q?'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api-rest/index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api-rest/index.php b/api-rest/index.php index 109d216..e253759 100644 --- a/api-rest/index.php +++ b/api-rest/index.php @@ -75,6 +75,10 @@ $url = filter_var($url, FILTER_SANITIZE_URL); $url = explode('/', $url); + if (empty($url)){ + exit; + } + $i=0; while ($url[$i]!=="index.php"){ unset($url[$i]);