Skip to content

Commit

Permalink
Remove SECS comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Lipen committed Sep 21, 2023
1 parent 686d403 commit 31b3a87
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ private boolean checkUserIsAdmin(String userId, String adminName) throws SQLExce
String adminId;
try (Connection dbConnection = DriverManager.getConnection("url://127.0.0.1:8080");
Statement statement = dbConnection.createStatement()) {
// SECS: potential SQL injection
ResultSet rs = statement.executeQuery("SELECT id from users where name='" + adminName + "'");
if (rs.next()) {
adminId = rs.getString(0);
Expand Down

0 comments on commit 31b3a87

Please sign in to comment.