From f373dd3363ae24b2c5617bdbe4f1ebf7a76dd7f2 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 19 Oct 2020 07:56:24 +0200 Subject: [PATCH] Allow more than one tag in argument in get_tags(). Because dynamic input fields are not implemented in the Web-UI, we use one input field with commas for now. --- src/cgi.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cgi.cpp b/src/cgi.cpp index 601f4d5..8e95de7 100644 --- a/src/cgi.cpp +++ b/src/cgi.cpp @@ -123,7 +123,10 @@ vector get_tags() const string tag{element.getValue()}; if (!tag.empty()) { - tags_string.push_back(tolower(tag)); + const auto new_tags{string_to_vector(tolower(tag))}; + tags_string.insert(tags_string.end(), + std::make_move_iterator(new_tags.begin()), + std::make_move_iterator(new_tags.end())); } }