You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by ri...@apache.org on 2010/01/20 15:47:39 UTC
svn commit: r901220 -
/felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java
Author: rickhall
Date: Wed Jan 20 14:47:38 2010
New Revision: 901220
URL: http://svn.apache.org/viewvc?rev=901220&view=rev
Log:
Use UTF-8 when decoding URLs. (FELIX-1998)
Modified:
felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java
Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java?rev=901220&r1=901219&r2=901220&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java Wed Jan 20 14:47:38 2010
@@ -985,7 +985,7 @@
}
// Decode any URL escaped sequences.
- location = URLDecoder.decode(location);
+ location = URLDecoder.decode(location, "UTF-8");
// Make sure the referenced file exists.
File file = new File(location.substring(FILE_PROTOCOL.length()));
@@ -1136,4 +1136,4 @@
if (os != null) os.close();
}
}
-}
\ No newline at end of file
+}