Skip to content

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
jplukarski committed Mar 18, 2024
1 parent fad9780 commit d75a919
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

## 7.0.1
- Improve sanitation of HTML Entities

## 7.0.0

- Move constant declarations from index file to `constants.ts` file
Expand Down
5 changes: 5 additions & 0 deletions src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ describe("sanitizeUrl", () => {
"javasc&#\u0000x09;ript:alert(1)",
"java&&#78&#59;ewLine&newline&#59;&#59;script:alert('XSS')",
"java&NewLine&newline;;script:alert('XSS')",
// "javascrip\164t:alert()",
// "javascrip\nt:alert()",
// "javascrip\rt:alert()",
"%6Aavascript:alert()"
// "javascrip0x2f0x6et:alert()"
];

attackVectors.forEach((vector) => {
Expand Down

0 comments on commit d75a919

Please sign in to comment.