From 55a6bb67d37df1f273a64ea226eaf0fdfd53171e Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 6 Mar 2019 13:01:05 +0100 Subject: pkgapi/pkginfo.php: give 404 on empty info --- pkgapi/pkginfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgapi') 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) { -- cgit v1.2.3-70-g09d2