mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure role names are escaped in the membership control. Fixes #2606
This commit is contained in:
committed by
Dave Page
parent
654326a0d1
commit
2e2ca26020
@@ -196,7 +196,7 @@ define('pgadmin.node.role', [
|
||||
} else {
|
||||
var d = _.extend(
|
||||
{}, data, {
|
||||
'opttext': opt.text,
|
||||
'opttext': _.escape(opt.text),
|
||||
'optimage': optimage,
|
||||
'checkbox': false
|
||||
});
|
||||
@@ -224,7 +224,7 @@ define('pgadmin.node.role', [
|
||||
} else {
|
||||
var d = _.extend(
|
||||
{}, data, {
|
||||
'opttext': opt.text,
|
||||
'opttext': _.escape(opt.text),
|
||||
'optimage': optimage,
|
||||
'checkbox': true
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user