Skip to content

Commit

Permalink
Update DbController.cs
Browse files Browse the repository at this point in the history
- empty insert fixed
  • Loading branch information
Kretchen001 committed Apr 8, 2024
1 parent d944ce3 commit 7b021be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/AmIVulnerable/AmIVulnerable/Controllers/DbController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public IActionResult ConvertRawFilesToMySql() {

/// <summary></summary>
/// <returns></returns>
[HttpGet]
[HttpPost]
[Route("Update")]
public IActionResult UpdateCveDatabase() {
using (Operation.Time("UpdateCveDatabase")) {
Expand Down Expand Up @@ -222,6 +222,9 @@ public IActionResult UpdateCveDatabase() {
if (product.Length > 500) {
product = product[0..500];
}
if (product.Equals("")) {
product = "n/a";
}
}
catch {
product = "n/a";
Expand Down

0 comments on commit 7b021be

Please sign in to comment.