commit: c56301974701162b8159fc0f04a90c364404da5d
parent: 1e086ebb73bb388f1522fc538bb8a37dd13e4531
author: Chris Noxz <chris@noxz.tech>
date: Fri, 24 Mar 2023 19:33:20 +0100
uri encode the selection before using it in a uri
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/browser.c b/browser.c
@@ -1033,7 +1033,7 @@ selection_search(struct Client *c)
{
webkit_web_view_run_javascript(
WEBKIT_WEB_VIEW(c->wv),
- "window.getSelection().toString();",
+ "encodeURIComponent(window.getSelection().toString());",
NULL,
cb_selection_search_finished,
c