aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/clog.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/clog.c b/src/clog.c
index 5111b06..4d29cf9 100644
--- a/src/clog.c
+++ b/src/clog.c
@@ -79,6 +79,8 @@ static void process_md_output(const MD_CHAR *html, MD_SIZE size, void *buf);
static int render_md(const char *in, struct kore_buf *out);
void entry_query_init(struct entry_query *eq, const char *id, const char *query) {
+ int i = 0;
+
if (id != NULL) {
eq->id = kore_strdup(id);
}
@@ -88,6 +90,11 @@ void entry_query_init(struct entry_query *eq, const char *id, const char *query)
if (query != NULL) {
eq->query = kore_strdup(query);
+ for (i = 0; i < strlen(eq->query); ++i) {
+ if (eq->query[i] == ' ') {
+ eq->query[i] = '|';
+ }
+ }
}
else {
eq->query = NULL;