This commit is contained in:
GZod01 2024-07-31 15:24:28 +02:00
parent 965e071376
commit 4fabec6063
222 changed files with 7 additions and 1 deletions

View file

@ -18,7 +18,7 @@ function urlIsAvailable($url){
}
function getImage($url){
$alternativeurl = "./hellowrld/".str_replace("/","-",$url);
$alternativeurl = "./hellowrld/".str_replace([":","/"],"-",$url);
if(file_exists($alternativeurl)){
header('Content-Type: '.mime_content_type($alternativeurl));
die(file_get_contents($alternativeurl));