Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit c218cd8

Browse files
committed
Encode URL in bookmarklet
1 parent 1190f5e commit c218cd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/footer.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
·
1616
Based on <a href="http://rg3.github.io/youtube-dl/">youtube-dl</a>
1717
&middot;
18-
<a href="javascript:window.location='{$base_url}/api.php?url='+location.href;">Bookmarklet</a>
18+
<a href="javascript:window.location='{$base_url}/api.php?url='+encodeURIComponent(location.href);">Bookmarklet</a>
1919
</div>
2020
</footer>
2121
</body>

0 commit comments

Comments
 (0)