Fix: Issue where API NZB downloads would fail. Ported from nZEDb.

This commit is contained in:
Darko
2015-08-10 14:45:10 +02:00
parent 11206d2a79
commit 37815a6aac
+2 -2
View File
@@ -52,9 +52,9 @@ if ($requests > $maxDownloads) {
$page->show503();
}
if (!isset($_GET['id']) || !ctype_xdigit($_GET['id'])) {
if (!isset($_GET['id'])) {
header("X-DNZB-RCode: 400");
header("X-DNZB-RText: Bad request! (parameter id is required and must be hexadecimal or numeric)");
header("X-DNZB-RText: Bad request! (parameter id is required)");
$page->show403();
}