Commit ceb5ef0
authored
fix(svg): sanitize hex colors in monthly badge to prevent XSS (JhaSourav07#586)
## Description
Fixes JhaSourav07#578
## Pillar
- [ ] π¨ Pillar 1 β New Theme Design
- [ ] π Pillar 2 β Geometric SVG Improvement
- [ ] π Pillar 3 β Timezone Logic Optimization
- [x] π οΈ Other (Bug fix, refactoring, docs)
## Visual Preview
No visual change for normal users, this fixes an XSS vulnerability.
## Checklist before requesting a review:
- [x] I have read the `CONTRIBUTING.md` file.
- [x] I have tested these changes locally
(`localhost:3000/api/streak?user=YOUR_USERNAME`).
- [x] I have run `npm run format` and `npm run lint` locally and
resolved all errors (CI will fail otherwise).
- [x] My commits follow the Conventional Commits format (e.g.,
`feat(themes): ...`, `fix(calculate): ...`).
- [x] I have updated `README.md` if I added a new theme or URL
parameter.
- [x] I have started the repo.
- [x] I have made sure that i have only one commit to merge in this PR.
- [x] The SVG output matches the CommitPulse "premium quality" aesthetic
standard (no raw elements, smooth animations, correct fonts).
- [x] (Recommended) I joined the CommitPulse Discord server for faster
collaboration, mentorship, and PR support.0 file changed
0 commit comments