Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SQL format string in create_config_internal #1701

Merged
merged 2 commits into from
Oct 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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