Browse Source

Fixed error with incorrect state provided to api

pull/33/head
parent
commit
49c5dc4278
Signed by: aayla GPG Key ID: 5D2C38575E4217B7
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      api/state/chapters/index.php

+ 5
- 0
api/state/chapters/index.php View File

@ -29,6 +29,11 @@ include_once("chapters/chapterlist.php");
$state = resolve_state($_GET["state"]);
if (!$state) {
http_response_code(404);
die();
}
if (!array_key_exists($state, $chapters)) {
http_response_code(404);
die();


Loading…
Cancel
Save