Skip to content
Snippets Groups Projects
Commit 0384ef2a authored by Marc DeXeT's avatar Marc DeXeT
Browse files

Quote file separator to avoid backslash failures (3)

parent eab37a3e
No related branches found
No related tags found
No related merge requests found
......@@ -714,7 +714,7 @@ public class LocalUWSFileManager implements UWSFileManager {
protected String getBackupFileName(final JobOwner owner) throws IllegalArgumentException{
if (owner == null || owner.getID() == null || owner.getID().trim().isEmpty())
throw new IllegalArgumentException("Missing owner! Can not get the backup file of an unknown owner.");
return owner.getID().replaceAll(File.separator, "_") + ".backup";
return owner.getID().replaceAll(Pattern.quote(File.separator), "_") + ".backup";
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment