aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFloran Brutel <contact@floran.fr>2018-03-28 22:46:14 +0200
committerFloran Brutel <fbrutel@hexanet.fr>2018-04-01 20:55:45 +0200
commit8e5b91180e35be27fc47cf9b8981a3378061823e (patch)
tree22595599e9c3bbaba16d9a9ec46ef20153b6d2a0
parent3b46d0f947958e05c55bb10a817e94a860cda6ef (diff)
downloadwallabag-8e5b91180e35be27fc47cf9b8981a3378061823e.tar.gz
wallabag-8e5b91180e35be27fc47cf9b8981a3378061823e.tar.zst
wallabag-8e5b91180e35be27fc47cf9b8981a3378061823e.zip
Better encoding of the URI for the bookmarklet
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/common/Static/_bookmarklet.html.twig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/common/Static/_bookmarklet.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/common/Static/_bookmarklet.html.twig
index 3385cd53..9ebf1bed 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/common/Static/_bookmarklet.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/common/Static/_bookmarklet.html.twig
@@ -1 +1 @@
<a id="bookmarklet" ondragend="this.click();" href="javascript:(function(){var url=location.href||url;var wllbg=window.open('{{ url('bookmarklet') }}?url=' + encodeURI(url),'_blank');})();">bag it!</a> <a id="bookmarklet" ondragend="this.click();" href="javascript:(function(){var url=location.href||url;var wllbg=window.open('{{ url('bookmarklet') }}?url=' + encodeURIComponent(url),'_blank');})();">bag it!</a>