This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse
Roman Rizzi 5ee31cbf7d
FIX: Mark invites flash messages as HTML safe. (#15539)
* FIX: Mark invites flash messages as HTML safe.
This change should be safe as all user inputs included in the errors are sanitized before sending it back to the client.

Context: https://meta.discourse.org/t/html-tags-are-explicit-after-latest-update/214220

* If somebody adds a new error message that includes user input and doesn't sanitize it, using html-safe suddenly becomes unsafe again. As an extra layer of protection, we make the client sanitize the error message received from the backend.

* Escape user input instead of sanitizing
2022-01-18 09:38:31 -03:00
..
app FIX: Mark invites flash messages as HTML safe. (#15539) 2022-01-18 09:38:31 -03:00
config DEV: Allow ember server --environment production to be used (#15431) 2021-12-31 12:26:23 +00:00
lib DEV: Update plugin JS loading in Ember CLI testem environment 2022-01-18 10:16:29 +00:00
public/assets/scripts DEV: Support for running theme test with Ember CLI (third attempt) 2022-01-13 16:02:07 -05:00
tests FIX: Attempt to fix flaky test by using a shorter topic (#15627) 2022-01-18 19:22:49 +08:00
.ember-cli REFACTOR: Sync up master with changes for Ember-CLI (#11671) 2021-01-12 10:13:21 -05:00
.npmrc DEV: Prevent npm usage (#13945) 2021-08-04 22:04:58 +02:00
ember-cli-build.js DEV: Fix missing test paths for Ember CLI (#15578) 2022-01-14 11:53:52 +10:00
package.json DEV: Support for running theme test with Ember CLI (third attempt) 2022-01-13 16:02:07 -05:00
testem.js DEV: Update plugin JS loading in Ember CLI testem environment 2022-01-18 10:16:29 +00:00