Skip to content

Commit

Permalink
Merge pull request #781 from 7ym0n/gvmd-8.0
Browse files Browse the repository at this point in the history
change % to %% of vasprintf
  • Loading branch information
timopollmeier authored Oct 10, 2019
2 parents cd36cde + f938726 commit a074d92
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 @@ -34,6 +34,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- A possible database migration issue from GVMd-7 to GVMd-8 has been addressed [#742](https://github.com/greenbone/gvmd/pull/742)
- Fix escaping that was preventing start_task from running [#758](https://github.com/greenbone/gvmd/pull/758)
- Fix array index error when modifying roles and groups [#763](https://github.com/greenbone/gvmd/pull/763)
- Fix percent sign escaping in report_port_count [#781](https://github.com/greenbone/gvmd/pull/781)

### Removed

Expand Down
2 changes: 1 addition & 1 deletion src/manage_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -28575,7 +28575,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 a074d92

Please sign in to comment.