Skip to content

Commit

Permalink
Encode url parameter inside HTML
Browse files Browse the repository at this point in the history
Fixes thumbor#7
  • Loading branch information
geraldino2 authored Dec 8, 2023
1 parent 6dd7fde commit e777e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thumborizeme/static/js/unclog.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@

social.html('');

social.append('<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://thumborize.me?url=' + url + '" data-text="' + tweet + '" data-hashtags="thumbor">Tweet</a>');
social.append('<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://thumborize.me?url=' + encodeURIComponent(url) + '" data-text="' + encodeURIComponent(tweet) + '" data-hashtags="thumbor">Tweet</a>');

social.append('<div ' +
'class="fb-like" ' +
Expand Down

0 comments on commit e777e2a

Please sign in to comment.