Merge pull request #3616 from notFloran/3404-bookmarklet-encoding

Better encoding of the URI for the bookmarklet
This commit is contained in:
Jérémy Benoist
2018-04-03 22:07:52 +02:00
committed by GitHub

View 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>