Skip to content

Commit

Permalink
Merge pull request #783 from timopollmeier/report_port_count-fix-master
Browse files Browse the repository at this point in the history
Report port count fix (master)
  • Loading branch information
mattmundell authored Oct 10, 2019
2 parents 40e87ea + f0e25b9 commit 79afbfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix sorting by numeric filter columns [#751](https://github.com/greenbone/gvmd/pull/751)
- Fix array index error when modifying roles and groups [#762](https://github.com/greenbone/gvmd/pull/762)
- Make get_settings return only one setting when setting_id is given [#780](https://github.com/greenbone/gvmd/pull/780)
- Fix percent sign escaping in report_port_count [#783](https://github.com/greenbone/gvmd/pull/783)

### Removed
- The handling of NVT updates via OTP has been removed. [#575](https://github.com/greenbone/gvmd/pull/575)
Expand Down
2 changes: 1 addition & 1 deletion src/manage_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -27712,7 +27712,7 @@ report_port_count (report_t report)
{
return sql_int ("SELECT count (DISTINCT port) FROM results"
" WHERE report = %llu AND port != ''"
" AND port NOT %s 'general/%';",
" AND port NOT %s 'general/%%';",
report,
sql_ilike_op ());
}
Expand Down

0 comments on commit 79afbfa

Please sign in to comment.