瀏覽代碼

Remove + escapeing

Trevor Flynn 5 年之前
父節點
當前提交
ed3d67babb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/GltfLoader.java

+ 1 - 1
jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/GltfLoader.java

@@ -1191,7 +1191,7 @@ public class GltfLoader implements AssetLoader {
 
 
     private String decodeUri(String uri) {
     private String decodeUri(String uri) {
         try {
         try {
-            return URLDecoder.decode(uri.replace("+", "%2B"), "UTF-8");
+            return URLDecoder.decode(uri, "UTF-8");
         } catch (UnsupportedEncodingException e) {
         } catch (UnsupportedEncodingException e) {
             return uri; //This would mean that UTF-8 is unsupported on the platform.
             return uri; //This would mean that UTF-8 is unsupported on the platform.
         }
         }