Skip to content

Commit

Permalink
escape label of node of tree, when events: add\remove\unload
Browse files Browse the repository at this point in the history
  • Loading branch information
polymorphm committed May 9, 2017
1 parent 2921794 commit f993513
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/pgadmin/browser/templates/browser/js/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ function($, _, S, pgAdmin, Menu, Backbone, Alertify, pgBrowser, Backform) {
t.setLabel(
pItem, {
label: (
pData._label + ' <span>(' + pData.collection_count + ')</span>'
_.escape(pData._label) + ' <span>(' + pData.collection_count + ')</span>'
)
}
);
Expand Down Expand Up @@ -821,7 +821,7 @@ function($, _, S, pgAdmin, Menu, Backbone, Alertify, pgBrowser, Backform) {
t.setLabel(
pItem, {
label: (
pData._label + ' <span>(' + pData.collection_count + ')</span>'
_.escape(pData._label) + ' <span>(' + pData.collection_count + ')</span>'
)
}
);
Expand All @@ -838,7 +838,7 @@ function($, _, S, pgAdmin, Menu, Backbone, Alertify, pgBrowser, Backform) {
if (self.is_collection && 'collection_count' in data)
{
delete data.collection_count;
t.setLabel(item, {label: data._label});
t.setLabel(item, {label: _.escape(data._label)});
}
},
refresh: function(cmd, i) {
Expand Down

1 comment on commit f993513

@asheshv
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Committed on the original git repository.
Reference: https://git.postgresql.org/gitweb/?p=pgadmin4.git;a=commit;h=cbf2de6c27760669a7c7e48f6bfc47c6053309f8

Please pull the latest change.

Thanks for the patch.

-- Thanks & Regards,
Ashesh

Please sign in to comment.