diff --git a/index.php b/index.php index 544c210..0c2c215 100644 --- a/index.php +++ b/index.php @@ -37,17 +37,14 @@ if (!empty($_GET['url'])) { $findfiles = glob($hashfilepath); - if (empty($findfiles)) { - $content = 'No files.'; + if (!empty($findfiles)) { + $fullfilepath = current($findfiles); - return 1; + header('Location:'.file_get_contents($fullfilepath)); + return 0; } - $fullfilepath = current($findfiles); - - header('Location:'.file_get_contents($fullfilepath)); - - return 0; + $content = 'No link match this identifier.'; } else { $content = '