Skip to content

Commit

Permalink
Fixes #3265: Do not strip special chars when extracting recipes.
Browse files Browse the repository at this point in the history
  • Loading branch information
yueh committed Dec 3, 2017
1 parent 1ad49ed commit ac82502
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -25,7 +25,6 @@
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLDecoder;
import java.util.Collection;
import java.util.Enumeration;
import java.util.HashSet;
Expand Down Expand Up @@ -227,7 +226,7 @@ private String[] getResourceListing( @Nonnull final Class<?> clazz, @Nonnull fin
final String dirPath = dirURL.getPath();
final String jarPath = dirPath.substring( 5, dirPath.indexOf( '!' ) ); // strip out only
// the JAR file
final JarFile jar = new JarFile( URLDecoder.decode( jarPath, UTF_8_ENCODING ) );
final JarFile jar = new JarFile( jarPath );
try
{
final Enumeration<JarEntry> entries = jar.entries(); // gives ALL entries in jar
Expand Down

0 comments on commit ac82502

Please sign in to comment.