Escape ID

This commit is contained in:
Winston Chang
2016-03-23 14:00:58 -05:00
parent 34068b1598
commit 09c93bfb39

View File

@@ -76,7 +76,7 @@ exports.notifications = (function() {
// Returns an individual notification DOM object (wrapped in jQuery).
function get(id) {
return _getPanel().find('#shiny-notification-' + id);
return _getPanel().find('#shiny-notification-' + $escape(id));
}
// Return array of all notification IDs