Explorar o código

add protection

andre %!s(int64=4) %!d(string=hai) anos
pai
achega
e58d147599
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      list.php

+ 1 - 1
list.php

@@ -15,7 +15,7 @@ if($act->isBlocked($clientIP)) {
     exit;
     exit;
 }
 }
 
 
-if (!(new token)->isConsumer($token) == true) {
+if (!(new token)->isConsumer($token)) {
     $act->block($clientIP);
     $act->block($clientIP);
     echo "user access denied";
     echo "user access denied";
     exit;
     exit;