]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Better encoding of the URI for the bookmarklet 3616/head
authorFloran Brutel <contact@floran.fr>
Wed, 28 Mar 2018 20:46:14 +0000 (22:46 +0200)
committerFloran Brutel <fbrutel@hexanet.fr>
Sun, 1 Apr 2018 18:55:45 +0000 (20:55 +0200)
src/Wallabag/CoreBundle/Resources/views/themes/common/Static/_bookmarklet.html.twig

index 3385cd535fa3ef25cf0bde22937b881a8f7e5f35..9ebf1bedffc43301d830103c42f8da49bd14383d 100644 (file)
@@ -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>