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
commit a0f126b973
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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>