From dbabcdcb7dfc488a16c16a4f43efabc508be1e88 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 24 May 2013 05:05:35 +0000 Subject: [PATCH] * trailing "..." in filenames are not allowed on windows so ake sure we sanitize that as well --- source/net/sourceforge/tuned/FileUtilities.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/sourceforge/tuned/FileUtilities.java b/source/net/sourceforge/tuned/FileUtilities.java index 572fe0ce..8f543426 100644 --- a/source/net/sourceforge/tuned/FileUtilities.java +++ b/source/net/sourceforge/tuned/FileUtilities.java @@ -458,7 +458,7 @@ public final class FileUtilities { /** * Invalid file name characters: \, /, :, *, ?, ", <, >, |, \r and \n */ - public static final Pattern ILLEGAL_CHARACTERS = Pattern.compile("[\\\\/:*?\"<>|\\r\\n]"); + public static final Pattern ILLEGAL_CHARACTERS = Pattern.compile("[\\\\/:*?\"<>|\\r\\n]|[.]+$"); /**