[OLINGO-250]'jsonLightPayloadInfo' function does not unescape entityset names 
extracted directly from a URL


Project: http://git-wip-us.apache.org/repos/asf/olingo-odata3-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata3-js/commit/f0066074
Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata3-js/tree/f0066074
Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata3-js/diff/f0066074

Branch: refs/heads/master
Commit: f006607443d1b356c7a955cfdbfb1e41508269c1
Parents: e5b716e
Author: Bing Li <[email protected]>
Authored: Tue Apr 29 15:30:56 2014 +0800
Committer: Bing Li <[email protected]>
Committed: Tue Apr 29 15:30:56 2014 +0800

----------------------------------------------------------------------
 JSLib/src/odata-json-light.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/olingo-odata3-js/blob/f0066074/JSLib/src/odata-json-light.js
----------------------------------------------------------------------
diff --git a/JSLib/src/odata-json-light.js b/JSLib/src/odata-json-light.js
index 084ecaf..a0ac752 100644
--- a/JSLib/src/odata-json-light.js
+++ b/JSLib/src/odata-json-light.js
@@ -1064,7 +1064,7 @@
             }
         }
 
-        var fragment = decodeURIComponent(metadataUri.substring(fragmentStart 
+ 1, fragmentEnd));
+        var fragment = metadataUri.substring(fragmentStart + 1, fragmentEnd);
         if (fragment.indexOf("/$links/") > 0) {
             return jsonLightMakePayloadInfo(PAYLOADTYPE_LINKS);
         }

Reply via email to