Properly fixes conversion of files with filenames containing square brackets
All checks were successful
KnarCraft/FFmpegConvert/pipeline/head This commit looks good
All checks were successful
KnarCraft/FFmpegConvert/pipeline/head This commit looks good
Unknown whether this breaks conversion of filenames containing semicolons or apostrophes
This commit is contained in:
@ -427,9 +427,9 @@ public abstract class Converter {
|
||||
static String escapeSpecialCharactersInFileName(String fileName) {
|
||||
return fileName.replace("'", "\\\\\\'")
|
||||
.replace(",", "\\\\\\,")
|
||||
.replace(";", "\\\\\\;");
|
||||
/*.replace("]", "\\]") //Not sure whether these should be escaped or not
|
||||
.replace("[", "\\[");*/
|
||||
.replace(";", "\\\\\\;")
|
||||
.replace("]", "\\]")
|
||||
.replace("[", "\\[");
|
||||
}
|
||||
|
||||
static void print(String input) throws IOException {
|
||||
|
Reference in New Issue
Block a user