Skip to content

Commit

Permalink
Sanitize your bio after you save it and render it to yourself.
Browse files Browse the repository at this point in the history
  • Loading branch information
nlalonde committed Jan 16, 2014
1 parent 7c8ea8c commit 09ed7fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Discourse.PreferencesController = Discourse.ObjectController.extend({
if (Discourse.User.currentProp('id') === model.get('id')) {
Discourse.User.currentProp('name', model.get('name'));
}
self.set('bio_cooked', Discourse.Markdown.cook(self.get('bio_raw')));
self.set('bio_cooked', Discourse.Markdown.cook(Discourse.Markdown.sanitize(self.get('bio_raw'))));
self.set('saved', true);
}, function() {
// model failed to save
Expand Down

0 comments on commit 09ed7fe

Please sign in to comment.