diff options
author | Erich Eckner <git@eckner.net> | 2019-03-06 13:01:05 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-03-06 13:01:05 +0100 |
commit | 55a6bb67d37df1f273a64ea226eaf0fdfd53171e (patch) | |
tree | 06bb89a1e8e4735ffb9178934d08473807a935f3 /pkgapi/pkginfo.php | |
parent | da8303504d0b27f296b2109e13c48f704a85d3f9 (diff) | |
download | archweb32-55a6bb67d37df1f273a64ea226eaf0fdfd53171e.tar.xz |
pkgapi/pkginfo.php: give 404 on empty info
Diffstat (limited to 'pkgapi/pkginfo.php')
-rw-r--r-- | pkgapi/pkginfo.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgapi/pkginfo.php b/pkgapi/pkginfo.php index d9301ed..083481a 100644 --- a/pkgapi/pkginfo.php +++ b/pkgapi/pkginfo.php @@ -29,7 +29,7 @@ $infos = trim( ) ); -if (!isset($infos)) +if (!isset($infos) || empty($infos)) throw_http_error(404, 'Package not found.'); function parse_pacinfo_line($line) { |