From 89855bb01f90a6dd2c90403e320b0633b22c1c1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Sat, 6 Jul 2019 07:47:12 +0200 Subject: [PATCH] Encode URL parameter in bookmarklet --- bookmarks/templates/bookmarks/bookmarklet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookmarks/templates/bookmarks/bookmarklet.js b/bookmarks/templates/bookmarks/bookmarklet.js index ba0ab08..abd8339 100644 --- a/bookmarks/templates/bookmarks/bookmarklet.js +++ b/bookmarks/templates/bookmarks/bookmarklet.js @@ -2,7 +2,7 @@ var bookmarkUrl = window.location; var applicationUrl = '{{ application_url }}'; - applicationUrl += '?url=' + bookmarkUrl; + applicationUrl += '?url=' + encodeURIComponent(bookmarkUrl); applicationUrl += '&auto_close'; window.open(applicationUrl);