Skip to content

Commit

Permalink
3063 - address cross site scripting (#368)
Browse files Browse the repository at this point in the history
* remove the whole add custom css block

This was used in Bridge, isn't used more and was causing a
cross-scripting warning: https://github.com/meedan/pender/security/code-scanning/15
  • Loading branch information
vasconsaurus authored Jul 21, 2023
1 parent 861cd98 commit 4b58f98
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions public/javascripts/embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@ var Pender = {};
(function($) {
'use strict';

// Add custom CSS
var css = document.location.hash.replace('#css=', '');
if (css !== '') {
$('head').append('<link rel="stylesheet" href="' + css + '" type="text/css" class="pender-custom-css" />');
$('meta[name="twitter:image"]').attr('content', function(index, attr) {
return attr + '?css=' + css;
});
}

// Alert parent window when the height changes
var htmlHeight = 0;
if (!Pender.id) {
Expand Down

0 comments on commit 4b58f98

Please sign in to comment.