Skip to content

Commit

Permalink
Solve some XSS attack bypass scenarios (#246)
Browse files Browse the repository at this point in the history
Solve some XSS attack bypass scenarios
  • Loading branch information
qhxin authored Feb 25, 2024
1 parent 4b8019f commit 6cf703c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/react-intl-universal/src/ReactIntlUniversal.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ class ReactIntlUniversal {
if (
this.options.escapeHtml === true &&
(typeof value === "string" || value instanceof String) &&
value.indexOf("<") >= 0 &&
value.indexOf(">") >= 0
value.indexOf("<") >= 0
) {
value = escapeHtml(value);
}
Expand Down

0 comments on commit 6cf703c

Please sign in to comment.