You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ma...@apache.org on 2017/05/17 15:47:17 UTC
incubator-atlas git commit: ATLAS-1813: UI to escape special
characters in URL
Repository: incubator-atlas
Updated Branches:
refs/heads/master f2255da11 -> bbf93327b
ATLAS-1813: UI to escape special characters in URL
Signed-off-by: Madhan Neethiraj <ma...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/bbf93327
Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/bbf93327
Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/bbf93327
Branch: refs/heads/master
Commit: bbf93327bb6377793aecb4f9ede3d75e1c59b636
Parents: f2255da
Author: Kalyani <ka...@freestoneinfotech.com>
Authored: Wed May 17 17:09:18 2017 +0530
Committer: Madhan Neethiraj <ma...@apache.org>
Committed: Wed May 17 08:23:34 2017 -0700
----------------------------------------------------------------------
dashboardv2/public/js/utils/Utils.js | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/bbf93327/dashboardv2/public/js/utils/Utils.js
----------------------------------------------------------------------
diff --git a/dashboardv2/public/js/utils/Utils.js b/dashboardv2/public/js/utils/Utils.js
index 1c76c65..e09220c 100644
--- a/dashboardv2/public/js/utils/Utils.js
+++ b/dashboardv2/public/js/utils/Utils.js
@@ -229,16 +229,14 @@ define(['require', 'utils/Globals', 'pnotify', 'utils/Messages', 'pnotify.button
if (options.urlParams) {
var urlParams = "?";
_.each(options.urlParams, function(value, key, obj) {
- if (value != undefined || value != null) {
- value = String(value);
- }
- value = value || null;
if (value) {
+ value = encodeURIComponent(String(value));
urlParams += key + "=" + value + "&";
}
});
urlParams = urlParams.slice(0, -1);
options.url += urlParams;
+
}
if (options.updateTabState) {
$.extend(Globals.saveApplicationState.tabState, options.updateTabState());