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]);