Better encoding of the URI for the bookmarklet

This commit is contained in:
Floran Brutel 2018-03-28 22:46:14 +02:00 committed by Floran Brutel
parent 3b46d0f947
commit 8e5b91180e
No known key found for this signature in database
GPG key ID: 5F489E97DDFCBEBC

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>