mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-22 16:56:30 -06:00
Ensure we properly escape data from Select2 controls. Fixes #1292
This commit is contained in:
parent
3f25e9331f
commit
f4e76a22b9
@ -1787,7 +1787,7 @@
|
||||
var Select2Formatter = function() {};
|
||||
_.extend(Select2Formatter.prototype, {
|
||||
fromRaw: function(rawData, model) {
|
||||
return JSON.stringify(_.escape(rawData));
|
||||
return JSON.parse(JSON.stringify(_.escape(rawData)));
|
||||
},
|
||||
toRaw: function(formattedData, model) {
|
||||
return formattedData;
|
||||
|
Loading…
Reference in New Issue
Block a user