Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

[929264] encode source urls. #354

Open
wants to merge 2 commits into from

2 participants

@ScottDowne
Owner

No description provided.

modules/player/popcorn.player.js
@@ -410,7 +410,11 @@
videoElement.id = videoID;
node.appendChild( videoElement );
setTimeout( function() {
- videoElement.src = src[ 0 ];
+ // Hack to decode html characters like & to &
+ var decodeDiv = document.createElement('div');
@mjschranz Owner

Space nits and double quotes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 22, 2013
  1. @ScottDowne
  2. @ScottDowne

    review

    ScottDowne authored
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 1 deletion.
  1. +5 −1 modules/player/popcorn.player.js
View
6 modules/player/popcorn.player.js
@@ -410,7 +410,11 @@
videoElement.id = videoID;
node.appendChild( videoElement );
setTimeout( function() {
- videoElement.src = src[ 0 ];
+ // Hack to decode html characters like & to &
+ var decodeDiv = document.createElement( "div" );
+ decodeDiv.innerHTML = src[ 0 ];
+
+ videoElement.src = decodeDiv.firstChild.nodeValue;
}, 0 );
return Popcorn( '#' + videoID, options );
}
Something went wrong with that request. Please try again.