|
|
|
|
|
by lennoff
1818 days ago
|
|
Well, how can we teach copilot to avoid raw string interpolation in such cases? Sure, some people will correct it, and the AI might improve, but I suspect that the majority of the developers will never notice it, and that'll just reinforce the AI's bad habits. |
|
// get password from the database using a mysql query function fetch_password(string $username) {
And 7/10 parameters are vulnerable to SQL-injection. Here's the first:
Here's all of them: https://paste.ubuntu.com/p/9qQ2BSnqbF/