From b744b2305e478bc8d76c0da91aeee88304a8fde7 Mon Sep 17 00:00:00 2001 From: sijanec Date: Wed, 2 Dec 2020 00:23:33 +0100 Subject: logic fix --- api/php/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api') diff --git a/api/php/api.php b/api/php/api.php index 51d7c8c..c2893ac 100644 --- a/api/php/api.php +++ b/api/php/api.php @@ -23,7 +23,7 @@ header("Content-Type: text/plain"); exit("400: Napaka. V zahtevi ni določeno, na kaj odgovarjate."); } - if (empty($_REQUEST["is-submitter-human"] != "true")) { + if ($_REQUEST["is-submitter-human"] != "true") { http_response_code(400); header("Content-Type: text/plain"); exit("400: Napaka. Izgleda, kakor da avtomatizirate zahteve. Koda napake: jebise"); -- cgit v1.2.3