diff --git a/web/dl.php b/web/dl.php
index bb111a8b6..08478ef5d 100644
--- a/web/dl.php
+++ b/web/dl.php
@@ -6,10 +6,10 @@
dl_mod($_GET['file']);
function dl_mod($mod) {
- if(strlen($mod) > 0) {
+ if(strlen($mod) > 0 && file_exists("files/$mod") && strpos($mod, "/") !== false) {
increment_dl_counter($mod);
header("Location: files/$mod");
- }
+ } else echo("Hm, doesn't seem like that file exists :(
Back");
}
function increment_dl_counter($mod) {