Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-07-08 13:21:05 +0200
committerErich Eckner <git@eckner.net>2019-07-08 13:21:05 +0200
commited9dc10c820270402c3c435ec097137e9d541f9a (patch)
tree3167af61295fdcd9ebab122faa8bd415830c65e3
parent9aa9fa833c3ea724beedb88de3099ab6c9234e23 (diff)
buildmaster/build-log.php: throw 404 on unavailable log
-rw-r--r--buildmaster/build-log.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildmaster/build-log.php b/buildmaster/build-log.php
index e2a2fc8..e02e121 100644
--- a/buildmaster/build-log.php
+++ b/buildmaster/build-log.php
@@ -27,6 +27,9 @@ $result = mysql_run_query(
' LIMIT 1'
);
+if ($result -> num_rows != 1)
+ throw_http_error(404, 'Not Found', 'No logs found for this package.');
+
$result = $result -> fetch_assoc();
redirect_temporarily('https://buildmaster.archlinux32.org/build-logs/error/' . $result['log_file']);