Skip to content

Commit

Permalink
Merge pull request galaxyproject#3292 from dannon/backport_upload_fn_…
Browse files Browse the repository at this point in the history
…escape

[16.07] Upload file escaping backport.
  • Loading branch information
natefoo authored Dec 9, 2016
2 parents 7272702 + c315f1d commit 602f2f2
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ return Backbone.View.extend({

// render
render: function() {
this.$('#file_name').html(this.model.get('file_name') || '-');
this.$('#file_name').html(_.escape(this.model.get('file_name') || '-'));
this.$('#file_desc').html(this.model.get('file_desc') || 'Unavailable');
this.$('#file_size').html(Utils.bytesToString (this.model.get('file_size')));
this.$('#status').removeClass().addClass(this.status_classes.init);
Expand Down
2 changes: 1 addition & 1 deletion client/galaxy/scripts/mvc/upload/default/default-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ return Backbone.View.extend({
var file_mode = this.model.get('file_mode');

// update title
this.$('#title').html(file_name);
this.$('#title').html(_.escape(file_name));

// update info
this.$('#size').html(Utils.bytesToString (file_size));
Expand Down
2 changes: 1 addition & 1 deletion static/maps/mvc/upload/composite/composite-row.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 602f2f2

Please sign in to comment.