Skip to content

Commit

Permalink
feat: update string
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-lefebvre committed Jan 9, 2025
1 parent c561a5b commit a0d1205
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import Island from '../components/Island.astro';
const xssMe ="</script><script>alert('xss')</script>"
const xssMe ="</script><script>alert('xss')</script><!--"
---
<html>
<head>
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/test/server-islands.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('Server islands', () => {
const res = await fixture.fetch('/');
assert.equal(res.status, 200);
const html = await res.text();
assert.equal(html.includes("</script><script>alert('xss')</script>"), false);
assert.equal(html.includes("</script><script>alert('xss')</script><!--"), false);
});

it('island is not indexed', async () => {
Expand Down

0 comments on commit a0d1205

Please sign in to comment.