Skip to content
Permalink
Browse files Browse the repository at this point in the history
Sanitizing file names
  • Loading branch information
LukasReschke committed Jul 11, 2012
1 parent 9af74a9 commit d203fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files/js/filelist.js
Expand Up @@ -14,7 +14,7 @@ FileList={
var extension=false;
}
html+='<td class="filename" style="background-image:url('+img+')"><input type="checkbox" />';
html+='<a class="name" href="download.php?file='+$('#dir').val()+'/'+name+'"><span class="nametext">'+basename
html+='<a class="name" href="download.php?file='+$('#dir').val().replace(/</, '&lt;').replace(/>/, '&gt;')+'/'+name+'"><span class="nametext">'+basename
if(extension){
html+='<span class="extension">'+extension+'</span>';
}
Expand Down

0 comments on commit d203fa2

Please sign in to comment.