summaryrefslogtreecommitdiffstats
path: root/api/php/api.php
diff options
context:
space:
mode:
Diffstat (limited to 'api/php/api.php')
-rw-r--r--api/php/api.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/php/api.php b/api/php/api.php
index 2b352a4..d274cee 100644
--- a/api/php/api.php
+++ b/api/php/api.php
@@ -28,10 +28,10 @@
header("Content-Type: text/plain");
exit("400: Napaka. Izgleda, kakor da avtomatizirate zahteve. Koda napake: jebise");
}
- if (strpos(@file_get_contents("b.txt"), "." . explode(".", $_SERVER["REMOTE_ADDR"])[0] . ".") !== FALSE) {
+ if (strpos(@file_get_contents("b.txt"), "\n" . explode(".", $_SERVER["REMOTE_ADDR"])[0] . "." . explode($_SERVER["REMOTE_ADDR"])[1] . "\t") !== FALSE) {
http_response_code(400);
header("Content-Type: text/plain");
- exit("400: Napaka. Izgleda, da ste na črnem seznamu. Kontaktirajte me.");
+ exit("400: Napaka. Izgleda, da ste na /16 črnem seznamu. Kontaktirajte me.");
}
$sporocilo = $_REQUEST['message'];
$parent = $_REQUEST['parent'];