Skip to content

Commit fdfffc3

Browse files
committed
Escape windows paths in UploadFileResource.
1 parent 680114d commit fdfffc3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/rest/UploadFileResource.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public Response uploadFile(
7979
}
8080

8181
String absPath = tempFile.getAbsolutePath();
82+
absPath = absPath.replace("\\", "\\\\");
8283
String response = String.format("{\"path\" : \"%s\"}", absPath);
8384
return Response.status(200).entity(response).build();
8485

0 commit comments

Comments
 (0)