Skip to content

Commit

Permalink
Escaping iframe URL src.
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan Collins committed Aug 2, 2018
1 parent c7b5b0a commit a090d2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/class-bc-utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -1151,12 +1151,13 @@ class="video-js"
if ( ! empty( $mute ) ) {
$mute = '&' . $mute;
}
$iframesrc = 'https://players.brightcove.net/' . $account_id . '/' . $player_id . '_default/index.html?playlistId=' . $id . '&usage=' . self::get_usage_data() . 'iframe' . $autoplay . $mute;
?>

<div style="display: block; position: relative; min-width: <?php echo esc_attr( $min_width ); ?>; max-width: <?php echo esc_attr( $max_width ); ?>;">
<div style="padding-top: <?php echo esc_attr( $padding_top ); ?>; ">
<iframe
src="//players.brightcove.net/<?php echo esc_attr( $account_id ); ?>/<?php echo esc_attr( $player_id ); ?>_default/index.html?playlistId=<?php echo esc_attr( $id ); ?>&usage=<?php echo esc_attr( self::get_usage_data() ); ?>iframe<?php echo esc_attr( $autoplay ); ?><?php echo esc_attr( $mute ); ?>"
src="<?php echo esc_url( $iframesrc ); ?>"
allowfullscreen
webkitallowfullscreen
mozallowfullscreen
Expand Down

0 comments on commit a090d2d

Please sign in to comment.