escaping issue

This commit is contained in:
Peter Cottle 2012-10-20 19:12:36 -07:00
parent e88539bd08
commit 3aa66ea57d

View file

@ -170,6 +170,7 @@ var CommandPromptView = Backbone.View.extend({
_.each(value.split(';'), _.bind(function(command, index) {
command = command.replace(/^(\s+)/, '');
command = command.replace(/(\s+)$/, '');
command = command.replace(/"/g, '"');
command = _.escape(command);
if (index > 0 && !command.length) {