Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix #386 make sure to encode filename in VideoPreviewer
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Dec 16, 2013
1 parent 05f8b9d commit 6bc96c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/plugins/editor.video/class.VideoPreviewer.js
Expand Up @@ -130,9 +130,9 @@ preload="auto" width="#{WIDTH}" height="#{HEIGHT}" data-setup="{}">\n\
content +=' <video class="video-js" controls preload="auto" height="200">';
var flashName;
html5proxies.each(function(pair){
var fname = url+'/'+ajxpBootstrap.parameters.get('ajxpServerAccess')+'&action=read_video_data'+sessidPart+'&file='+pair.value;
var fname = url+'/'+ajxpBootstrap.parameters.get('ajxpServerAccess')+'&action=read_video_data'+sessidPart+'&file='+encodeURIComponent(pair.value);
if(!flashName){
flashName = encodeURIComponent(fname);
flashName = encodeURIComponent(url+'/'+ajxpBootstrap.parameters.get('ajxpServerAccess')+'&action=read_video_data'+sessidPart+'&file='+pair.value);
}
content +=' <source src="'+fname+'" type=\''+types[pair.key]+'\' />';
});
Expand Down

0 comments on commit 6bc96c7

Please sign in to comment.