]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #3616 from notFloran/3404-bookmarklet-encoding
authorJérémy Benoist <j0k3r@users.noreply.github.com>
Tue, 3 Apr 2018 20:07:52 +0000 (22:07 +0200)
committerGitHub <noreply@github.com>
Tue, 3 Apr 2018 20:07:52 +0000 (22:07 +0200)
Better encoding of the URI for the bookmarklet

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>