Removes local path on 404

This commit is contained in:
Christophe HENRY 2021-03-02 22:05:30 +00:00
parent a359f16d06
commit affe677035
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ $filePath = $GMI_DIR.$url;
$fileContent = @file_get_contents($filePath);
if (!$fileContent) {
http_response_code(404);
die("404: $filePath $GMI_DIR $url");
die("404: $url");
}
$fileLines = preg_split("/\n/", $fileContent);