diff --git a/CHANGELOG.md b/CHANGELOG.md index eb315fcc6..dd9f43ef8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/manage_sql.c b/src/manage_sql.c index 9bc68e918..91a17da5e 100644 --- a/src/manage_sql.c +++ b/src/manage_sql.c @@ -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 ()); }