diff --git a/web/dl.php b/web/dl.php
index 08478ef5d..5638376d2 100644
--- a/web/dl.php
+++ b/web/dl.php
@@ -6,7 +6,7 @@
dl_mod($_GET['file']);
function dl_mod($mod) {
- if(strlen($mod) > 0 && file_exists("files/$mod") && strpos($mod, "/") !== false) {
+ 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");