mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
12 lines
369 B
PHP
12 lines
369 B
PHP
<?php
|
|
// SQL injection — unsupported fixture.
|
|
// Entry is a class method — entry kind unsupported.
|
|
// Test sets confidence = Low to get Unsupported(ConfidenceTooLow).
|
|
// Expected verdict: Unsupported
|
|
|
|
class UserRepository {
|
|
public function findUser($name) {
|
|
$query = "SELECT * FROM users WHERE name='" . $name . "'";
|
|
echo $query . "\n";
|
|
}
|
|
}
|