Skip to content

Commit

Permalink
Merge pull request #107 from truenorth/md-loader-xss-fix
Browse files Browse the repository at this point in the history
Fixed possible XSS bug in md-loader style binding
  • Loading branch information
mike-north committed May 17, 2015
2 parents 96961f6 + 611cbda commit 4d68a90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/components/md-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default Ember.Component.extend({
barStyle: computed('mode', 'percent', {
get() {
if (this.get('mode') === 'determinate') {
return `width: ${this.get('percent')}%`;
return Ember.String.htmlSafe(`width: ${parseInt(this.get('percent'), 10)}%`).string;
}
else {
return null;
Expand Down

0 comments on commit 4d68a90

Please sign in to comment.