Skip to content
Snippets Groups Projects
Unverified Commit 61d72c57 authored by marcdexet-cnrs's avatar marcdexet-cnrs Committed by GitHub
Browse files

Quote file separator to avoid backslash failures

parent 7bd91a1c
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ public class DefaultOwnerGroupIdentifier implements OwnerGroupIdentifier {
return null;
else{
// The user directory name = userID in which each directory separator char are replaced by a _ (=> no confusion with a path):
String userDir = owner.getID().trim().replaceAll(File.separator, "_");
String userDir = owner.getID().trim().replaceAll(Pattern.quote(File.separator), "_");
// The parent directory = the first LETTER of the userID or _ if none can be found:
String parentDir = "_";
......
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