diff --git a/j-lawyer-server-common/src/com/jdimension/jlawyer/server/utils/ServerFileUtils.java b/j-lawyer-server-common/src/com/jdimension/jlawyer/server/utils/ServerFileUtils.java index 18ce60677..fc8f43d2e 100755 --- a/j-lawyer-server-common/src/com/jdimension/jlawyer/server/utils/ServerFileUtils.java +++ b/j-lawyer-server-common/src/com/jdimension/jlawyer/server/utils/ServerFileUtils.java @@ -774,6 +774,8 @@ public static String sanitizeFileName(String fileName) { name = name.replace(">", ""); name = name.replace("<", ""); name = name.replace("|", "_"); + while(name.contains(" ")) + name = name.replace(" ", " "); return name.trim(); }