diff --git a/lib/CleantalkSP/SpbctWP/Scanner/Heuristic/Controller.php b/lib/CleantalkSP/SpbctWP/Scanner/Heuristic/Controller.php index 227dbd687..9e0230878 100644 --- a/lib/CleantalkSP/SpbctWP/Scanner/Heuristic/Controller.php +++ b/lib/CleantalkSP/SpbctWP/Scanner/Heuristic/Controller.php @@ -520,6 +520,10 @@ public function getVariablesBad() private function checkingSpecialDecryptedToken(DataStructures\Token $token) { + if (!$token->existsTag('glued')) { + return false; + } + return $token->type === 'T_CONSTANT_ENCAPSED_STRING' && is_callable(trim((string)$token->value, '\'')) && in_array(trim((string)$token->value, '\''), $this->dangerous_decoded_values, true);