Repository: olingo-odata3-js Updated Branches: refs/heads/master d0873e5dd -> f00660744
Issue-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/e5b716ec Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata3-js/tree/e5b716ec Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata3-js/diff/e5b716ec Branch: refs/heads/master Commit: e5b716ec6cee24348e181dc7a0f713cb8f0faaf0 Parents: d0873e5 Author: unknown <[email protected]> Authored: Tue Apr 29 15:14:28 2014 +0800 Committer: unknown <[email protected]> Committed: Tue Apr 29 15:14:28 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/e5b716ec/JSLib/src/odata-json-light.js ---------------------------------------------------------------------- diff --git a/JSLib/src/odata-json-light.js b/JSLib/src/odata-json-light.js index a0ac752..084ecaf 100644 --- a/JSLib/src/odata-json-light.js +++ b/JSLib/src/odata-json-light.js @@ -1064,7 +1064,7 @@ } } - var fragment = metadataUri.substring(fragmentStart + 1, fragmentEnd); + var fragment = decodeURIComponent(metadataUri.substring(fragmentStart + 1, fragmentEnd)); if (fragment.indexOf("/$links/") > 0) { return jsonLightMakePayloadInfo(PAYLOADTYPE_LINKS); }
