mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 03:05:40 +08:00
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:
parent
5d062206db
commit
9adfccfad1
@ -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');
|
||||
}
|
||||
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user