Skip to content

Commit

Permalink
remove requirement for "submit" to be set for api call
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewPaglusch committed Oct 22, 2022
1 parent c3d112d commit 9694226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
require_once("settings.php"); # load settings
require_once("includes/functions.php"); # load functions

# display secret code in json format if requested
if (isset($_POST['json']) && isset($_POST['submit']) && !empty($_POST['secret'])) {
# display secret retrieval url in json format if requested
if (isset($_POST['json']) && !empty($_POST['secret'])) {
header("Content-Type: application/json");
die(display_secret_code(true));
}
Expand Down

0 comments on commit 9694226

Please sign in to comment.