Skip to content

Commit

Permalink
special characters in file names
Browse files Browse the repository at this point in the history
  • Loading branch information
Rello authored Aug 1, 2016
1 parent 1812879 commit 50f473c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var audioPlayer = {
player : null,
dir: null,
onView : function(file, data) {
file = encodeURIComponent(file);
audioPlayer.file = file;
audioPlayer.dir = data.dir;
//sharingToken
Expand Down Expand Up @@ -103,6 +104,7 @@ $(document).ready(function() {
}
//$('#imgframe').append($('<br style="clear:both;" />'));
var fileName=$('#filename').val();
fileName = encodeURIComponent(fileName);
var audioUrl= OC.generateUrl('apps/audioplayer/getpublicaudiostream{file}?token={token}',{'file':fileName,'token':token},{escape:false});
var audioContainer=$('<div/>').attr('id','sm2-container');

Expand Down

0 comments on commit 50f473c

Please sign in to comment.