mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 18:23:46 +01:00
Escape user input (fixes #205)
This commit is contained in:
parent
5f3970fcdd
commit
dcc2159176
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user