Skip to content

Commit

Permalink
Fix potential wrong escape sting detected as number
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdnepro committed Sep 7, 2022
1 parent dfc4755 commit b773c1b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,11 @@ protected function escapeInt($value)
{
$value = number_format($value, 6, '.', ''); // may lose precision on big numbers
}
if (strpos($value, 'e') !== false)
{
// Если найден символ 'e' экранируем как строку для избежания багов
return $this->escapeString($value);
}
return $value;
}

Expand Down

0 comments on commit b773c1b

Please sign in to comment.