Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/pkgapi/pkginfo.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-03-06 13:01:05 +0100
committerErich Eckner <git@eckner.net>2019-03-06 13:01:05 +0100
commit55a6bb67d37df1f273a64ea226eaf0fdfd53171e (patch)
tree06bb89a1e8e4735ffb9178934d08473807a935f3 /pkgapi/pkginfo.php
parentda8303504d0b27f296b2109e13c48f704a85d3f9 (diff)
pkgapi/pkginfo.php: give 404 on empty info
Diffstat (limited to 'pkgapi/pkginfo.php')
-rw-r--r--pkgapi/pkginfo.php2
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) {