diff options
-rw-r--r-- | web/html/packages.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/web/html/packages.php b/web/html/packages.php index c1e54e1b..a4a480ce 100644 --- a/web/html/packages.php +++ b/web/html/packages.php @@ -18,6 +18,12 @@ if (!isset($pkgid) || !isset($pkgname)) { } else { unset($pkgid, $pkgname); } + + if (isset($pkgid) && ($pkgid == 0 || $pkgid == NULL || $pkgname == NULL)) { + header("HTTP/1.0 404 Not Found"); + include "./404.php"; + return; + } } # Set the title to the current query and get package details if required |