diff --git a/index.php b/index.php index 9533463..a807ba5 100644 --- a/index.php +++ b/index.php @@ -199,10 +199,12 @@ if ($_GET) { die('I take a chips and give it to Godzilla. I print a shoes and .............. KAMOULOX ! Well done Jean Pierre.'); } - $ui['url'] = urldecode($ui['url']); + $ui['url'] = rawurldecode($ui['url']); $testUrl = testValidUrl($ui['url']); if ($testUrl !== true) { - echo $testUrl['msg']; + header("Content-type: image/png"); + header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); + echo file_get_contents('bin/error.png'); exit(); } @@ -245,7 +247,7 @@ if ($_POST) { } verifToken($ui['token']); - $ui['url'] = urldecode($ui['url']); + $ui['url'] = rawurldecode($ui['url']); $testUrl = testValidUrl($ui['url']); if ($testUrl !== true) { @@ -315,9 +317,9 @@ if (empty($defUrl)) { '; + echo ''; } else { - echo ''; + echo ''; } } ?>