summaryrefslogtreecommitdiffstats
path: root/api/php/api.php
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-12-02 00:23:33 +0100
committersijanec <sijanecantonluka@gmail.com>2020-12-02 00:23:33 +0100
commitb744b2305e478bc8d76c0da91aeee88304a8fde7 (patch)
tree6c293de8984c32b18c90778ef0116cef5e21a3b7 /api/php/api.php
parentsyntax fix (diff)
downloadsijanec.eu-b744b2305e478bc8d76c0da91aeee88304a8fde7.tar
sijanec.eu-b744b2305e478bc8d76c0da91aeee88304a8fde7.tar.gz
sijanec.eu-b744b2305e478bc8d76c0da91aeee88304a8fde7.tar.bz2
sijanec.eu-b744b2305e478bc8d76c0da91aeee88304a8fde7.tar.lz
sijanec.eu-b744b2305e478bc8d76c0da91aeee88304a8fde7.tar.xz
sijanec.eu-b744b2305e478bc8d76c0da91aeee88304a8fde7.tar.zst
sijanec.eu-b744b2305e478bc8d76c0da91aeee88304a8fde7.zip
Diffstat (limited to '')
-rw-r--r--api/php/api.php2
1 files changed, 1 insertions, 1 deletions
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");