Repository: ranger
Updated Branches:
  refs/heads/ranger-0.7 3968c7f79 -> 8c92df64d


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/8c92df64
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/8c92df64
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/8c92df64

Branch: refs/heads/ranger-0.7
Commit: 8c92df64d8ccb03b59c5ba89d43632fc181c5c9c
Parents: 3968c7f
Author: ni3galave <[email protected]>
Authored: Mon Oct 23 10:40:56 2017 +0530
Committer: Mehul Parikh <[email protected]>
Committed: Mon Oct 23 21:29:18 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/8c92df64/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 92b8334..821a86b 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){
@@ -724,7 +724,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');
                },

Reply via email to