FIX: Regression with escaping on badge page

In this branch (stable) we can't run the sanitizer because the bundle is not
loaded. The long badge description is not sanitized, but it
has to be created by an admin so it's extremely low risk.

In the beta / tests-passed branches the text is sanitized.
This commit is contained in:
Robin Ward 2016-07-28 16:11:41 -04:00
parent 5d062206db
commit 9adfccfad1

View File

@ -36,10 +36,10 @@ export default Ember.Component.extend({
if (size === 'large') {
const longDescription = this.get('badge.long_description');
if (!_.isEmpty(longDescription)) {
return Discourse.Emoji.unescape(Discourse.Utilities.escapeExpression(longDescription));
return Discourse.Emoji.unescape(longDescription);
}
}
return Discourse.Utilities.escapeExpression(this.get('badge.description'));
return this.get('badge.description');
}
});