From 72cd101d2a8293fec5ee6192ad9f898e77c732be Mon Sep 17 00:00:00 2001 From: 4pr0n Date: Sat, 5 Apr 2014 13:52:27 -0700 Subject: [PATCH] Fixed spaces-in-directory bug #9 --- src/main/java/com/rarchives/ripme/utils/Utils.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/rarchives/ripme/utils/Utils.java b/src/main/java/com/rarchives/ripme/utils/Utils.java index c24c3023..bc3bd267 100644 --- a/src/main/java/com/rarchives/ripme/utils/Utils.java +++ b/src/main/java/com/rarchives/ripme/utils/Utils.java @@ -160,7 +160,10 @@ public class Utils { else { try { logger.debug("fullPath = " + fullPath); - String jarPath = fullPath.replaceFirst("[.]jar[!].*", ".jar").replaceFirst("file:", ""); + String jarPath = fullPath + .replaceFirst("[.]jar[!].*", ".jar") + .replaceFirst("file:", "") + .replaceAll("%20", " "); logger.debug("jarPath = " + jarPath); JarFile jarFile = new JarFile(jarPath); Enumeration entries = jarFile.entries();