1
0
mirror of https://tildegit.org/sbgodin/HtmGem.git synced 2023-08-25 13:53:12 +02:00

Removes local path on 404

This commit is contained in:
Christophe HENRY 2021-03-02 22:05:30 +00:00
parent a359f16d06
commit affe677035

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