Sanitizing file names
This commit is contained in:
parent
07efd39d8a
commit
c3fea30811
|
@ -14,7 +14,7 @@ FileList={
|
||||||
var extension=false;
|
var extension=false;
|
||||||
}
|
}
|
||||||
html+='<td class="filename" style="background-image:url('+img+')"><input type="checkbox" />';
|
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(/</, '<').replace(/>/, '>')+'/'+name+'"><span class="nametext">'+basename
|
||||||
if(extension){
|
if(extension){
|
||||||
html+='<span class="extension">'+extension+'</span>';
|
html+='<span class="extension">'+extension+'</span>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue