diff options
Diffstat (limited to 'src/clog.c')
-rw-r--r-- | src/clog.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; |