From 96942262cd9640a8762e8082e2bf28134c843259 Mon Sep 17 00:00:00 2001 From: Andrew Paglusch Date: Sat, 22 Oct 2022 00:04:55 -0500 Subject: [PATCH] remove requirement for "submit" to be set for api call --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index db0c026..8fd2f97 100644 --- a/index.php +++ b/index.php @@ -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)); }