From 39b05d799ce8e2cc86fb085d8e427f4dad2fcafd Mon Sep 17 00:00:00 2001 From: Thomas CHAZOT Date: Tue, 10 Jan 2023 21:07:06 +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 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/api-rest/index.php b/api-rest/index.php index e253759..5ed9c12 100644 --- a/api-rest/index.php +++ b/api-rest/index.php @@ -75,12 +75,8 @@ $url = filter_var($url, FILTER_SANITIZE_URL); $url = explode('/', $url); - if (empty($url)){ - exit; - } - $i=0; - while ($url[$i]!=="index.php"){ + while ($url[$i]!=="index.php" && count($url)>0){ unset($url[$i]); $i++; }