Escape user input (fixes #205)

This commit is contained in:
Sebastian Ramacher 2021-02-09 22:03:05 +01:00
parent 5f3970fcdd
commit dcc2159176

View file

@ -996,7 +996,9 @@ sc_search(girara_session_t* session, girara_argument_t* argument,
zathura_jumplist_add(zathura);
} else if (argument->data != NULL) {
const char* input = argument->data;
girara_notify(session, GIRARA_ERROR, _("Pattern not found: %s"), input);
char* escaped_text = g_markup_printf_escaped(_("Pattern not found: %s"), input);
girara_notify(session, GIRARA_ERROR, "%s", escaped_text);
g_free(escaped_text);
}
return false;