Skip to content

Commit

Permalink
Merge pull request #1701 from timopollmeier/create_config_fix
Browse files Browse the repository at this point in the history
Fix SQL format string in create_config_internal
  • Loading branch information
timopollmeier authored Oct 13, 2021
2 parents 96b48e1 + fd0e3e1 commit 401d39f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Removed OVAL definitions from GMP and gvmd documentation [1551](https://github.com/greenbone/gvmd/pull/1551)
- Removed the Business Process Map from gvmd [1627](https://github.com/greenbone/gvmd/pull/1627)
- Removed ifaces element from users [#1676](https://github.com/greenbone/gvmd/pull/1676)
- Removed OSP scanners from gvmd [#1689](https://github.com/greenbone/gvmd/pull/1689) [#1691](https://github.com/greenbone/gvmd/pull/1691) [#1694](https://github.com/greenbone/gvmd/pull/1694)
- Removed OSP scanners from gvmd [#1689](https://github.com/greenbone/gvmd/pull/1689) [#1691](https://github.com/greenbone/gvmd/pull/1691) [#1694](https://github.com/greenbone/gvmd/pull/1694) [#1701](https://github.com/greenbone/gvmd/pull/1701)

[Unreleased]: https://github.com/greenbone/gvmd/compare/gvmd-21.04...master

Expand Down
4 changes: 2 additions & 2 deletions src/manage_sql_configs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2491,7 +2491,7 @@ create_config_internal (int check_access, const char *config_id,
" creation_time, modification_time, usage_type, predefined)"
" VALUES (%s%s%s, '%s',"
" (SELECT id FROM users WHERE users.uuid = '%s'),"
" '%s', '%s', '%s', m_now (), m_now (), '%s', %i);",
" '%s', '%s', m_now (), m_now (), '%s', %i);",
config_id ? "'" : "",
config_id ? config_id : "make_uuid ()",
config_id ? "'" : "",
Expand All @@ -2508,7 +2508,7 @@ create_config_internal (int check_access, const char *config_id,
" creation_time, modification_time, usage_type, predefined)"
" VALUES (%s%s%s, '%s',"
" (SELECT id FROM users WHERE users.uuid = '%s'),"
" '%s', '', '%s', m_now (), m_now (), '%s', %i);",
" '', '%s', m_now (), m_now (), '%s', %i);",
config_id ? "'" : "",
config_id ? config_id : "make_uuid ()",
config_id ? "'" : "",
Expand Down

0 comments on commit 401d39f

Please sign in to comment.