mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-03 03:38:52 +00:00
Fix: Issue where API NZB downloads would fail. Ported from nZEDb.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user