Skip to content

Commit

Permalink
fix: fixed heuristic
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemAnoshin authored and Glomberg committed May 15, 2023
1 parent c0297d8 commit 7841ada
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/CleantalkSP/SpbctWP/Scanner/Heuristic/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7841ada

Please sign in to comment.