Remove invalid characters from filename
This commit is contained in:
parent
c1a36f0bdc
commit
4cf86168fe
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ public class ServerHandler extends RequestHandler {
|
||||||
|
|
||||||
if ( format != null )
|
if ( format != null )
|
||||||
{
|
{
|
||||||
fileName = ( params.get( "trackname" ) == null ? "brouter" : params.get( "trackname" ) ) + "." + format;
|
fileName = ( params.get( "trackname" ) == null ? "brouter" : params.get( "trackname" ).replaceAll("[^a-zA-Z0-9 \\._\\-]+", "") ) + "." + format;
|
||||||
}
|
}
|
||||||
|
|
||||||
return fileName;
|
return fileName;
|
||||||
|
|
Loading…
Reference in a new issue