1.0.32 - Fixing bug when ripper is in directory with special characters
Ripper class finder couldn't load the Jar file as it contained URL-encoded characters. Chars are decoded before loading JAR.
This commit is contained in:
parent
e5fffbc2c9
commit
761e75c07d
2
pom.xml
2
pom.xml
@ -4,7 +4,7 @@
|
||||
<groupId>com.rarchives.ripme</groupId>
|
||||
<artifactId>ripme</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>1.0.31</version>
|
||||
<version>1.0.32</version>
|
||||
<name>ripme</name>
|
||||
<url>http://rip.rarchives.com</url>
|
||||
<properties>
|
||||
|
@ -19,7 +19,7 @@ import org.jsoup.nodes.Document;
|
||||
public class UpdateUtils {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(UpdateUtils.class);
|
||||
private static final String DEFAULT_VERSION = "1.0.31";
|
||||
private static final String DEFAULT_VERSION = "1.0.32";
|
||||
private static final String updateJsonURL = "http://rarchives.com/ripme.json";
|
||||
private static final String updateJarURL = "http://rarchives.com/ripme.jar";
|
||||
private static final String mainFileName = "ripme.jar";
|
||||
|
@ -5,6 +5,7 @@ import java.io.IOException;
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.net.URISyntaxException;
|
||||
import java.net.URL;
|
||||
import java.net.URLDecoder;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Enumeration;
|
||||
import java.util.List;
|
||||
@ -206,8 +207,8 @@ public class Utils {
|
||||
try {
|
||||
String jarPath = fullPath
|
||||
.replaceFirst("[.]jar[!].*", ".jar")
|
||||
.replaceFirst("file:", "")
|
||||
.replaceAll("%20", " ");
|
||||
.replaceFirst("file:", "");
|
||||
jarPath = URLDecoder.decode(jarPath, "UTF-8");
|
||||
JarFile jarFile = new JarFile(jarPath);
|
||||
Enumeration<JarEntry> entries = jarFile.entries();
|
||||
while(entries.hasMoreElements()) {
|
||||
|
Loading…
Reference in New Issue
Block a user