We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code sample does not raises a TaintedSql:
<?php function deleteBindedUserId(PDO $pdo): void { $userId = $_POST['userid']; $stmt = $pdo->prepare("delete from users where user_id = :userid"); $stmt->bindParam(':user_id', $userId); $stmt->execute(); }
whereas a very similar piece of code correctly raises a TaintedSql:
<?php function deleteConcatenedUserId(PDO $pdo): void { $userId = $_POST['userid']; $stmt = $pdo->prepare("delete from users where user_id = " . $userId); $stmt->execute(); }
I'll write a PR fixing the issue.
The text was updated successfully, but these errors were encountered:
Hey @cgocast, can you reproduce the issue on https://psalm.dev ?
Sorry, something went wrong.
vimeo#10030 Add PDOStatement::bindValuebindValue() and PDOStatement::…
719496b
…bindParam() as sources for TaintedSql
Merge pull request #10032 from cgocast/master
3c08110
#10030 Fix missing TaintedSql
a7437a1
No branches or pull requests
The following code sample does not raises a TaintedSql:
whereas a very similar piece of code correctly raises a TaintedSql:
I'll write a PR fixing the issue.
The text was updated successfully, but these errors were encountered: