Skip to content

Commit

Permalink
Merge pull request #1099 from timopollmeier/cve-nvts-fix-9.0
Browse files Browse the repository at this point in the history
Fix NVTs list in CVE details (9.0)
  • Loading branch information
mattmundell authored May 19, 2020
2 parents 0b85ad7 + c8930c7 commit d15f8a2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [9.0.2] (unreleased)

### Fixed
- Fix NVTs list in CVE details [#1098](https://github.com/greenbone/gvmd/pull/1098)

[9.0.2]: https://github.com/greenbone/gvmd/compare/v9.0.1...gvmd-9.0

## [9.0.1] (2020-05-12)

### Added
Expand Down
5 changes: 4 additions & 1 deletion src/manage_sql_nvts.c
Original file line number Diff line number Diff line change
Expand Up @@ -758,11 +758,14 @@ init_cve_nvt_iterator (iterator_t* iterator, const char *cve, int ascending,
init_iterator (iterator,
"SELECT %s"
" FROM nvts"
" WHERE cve %s '%%%s%%'"
" WHERE cve %s '%%%s, %%'"
" OR cve %s '%%%s'"
" ORDER BY %s %s;",
nvt_iterator_columns (),
sql_ilike_op (),
cve ? cve : "",
sql_ilike_op (),
cve ? cve : "",
sort_field ? sort_field : "name",
ascending ? "ASC" : "DESC");
}
Expand Down

0 comments on commit d15f8a2

Please sign in to comment.