Repository: ranger Updated Branches: refs/heads/master 8d9bd5fba -> a4e69aab2
RANGER-1853: Masking functions based on custom masking of string types fails to unescape quotes properly Signed-off-by: Mehul Parikh <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/ranger/repo Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/a4e69aab Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/a4e69aab Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/a4e69aab Branch: refs/heads/master Commit: a4e69aab29a7c2362af26c0c46f8ed63d983370a Parents: 8d9bd5f Author: ni3galave <[email protected]> Authored: Mon Oct 23 10:40:56 2017 +0530 Committer: Mehul Parikh <[email protected]> Committed: Mon Oct 23 21:27:13 2017 +0530 ---------------------------------------------------------------------- .../src/main/webapp/scripts/views/policies/PermissionList.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ranger/blob/a4e69aab/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js ---------------------------------------------------------------------- diff --git a/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js b/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js index 73ea8fe..df6a2be 100644 --- a/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js +++ b/security-admin/src/main/webapp/scripts/views/policies/PermissionList.js @@ -485,7 +485,7 @@ define(function(require) { }); this.$el.find('input[data-id="maskTypeCustom"]').on('change', function(e){ if(!_.isUndefined(that.model.get('dataMaskInfo'))){ - that.model.get('dataMaskInfo').valueExpr = _.escape(e.currentTarget.value); + that.model.get('dataMaskInfo').valueExpr = (e.currentTarget.value); } }).trigger('change'); if(!this.accessPermSetForTagMasking){ @@ -735,7 +735,7 @@ define(function(require) { }); this.$el.find('input[data-id="maskTypeCustom"]').on('change', function(e){ if(!_.isUndefined(that.model.get('dataMaskInfo'))){ - that.model.get('dataMaskInfo').valueExpr = _.escape(e.currentTarget.value); + that.model.get('dataMaskInfo').valueExpr = (e.currentTarget.value); } }).trigger('change'); },
