fix: prevent HTML entity encoding in interpolated values#3263
fix: prevent HTML entity encoding in interpolated values#3263jeanfbrito merged 1 commit intomasterfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
WalkthroughAdded Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip CodeRabbit can scan for known vulnerabilities in your dependencies using OSV Scanner.OSV Scanner will automatically detect and report security vulnerabilities in your project's dependencies. No additional configuration is required. |
7650bbf to
12e5c0b
Compare
Summary
Root Cause
i18next's default escapeValue is true, which HTML-encodes interpolated values to prevent XSS. The / character in locale-formatted dates was being escaped to /. Since this is a React app (which already handles XSS protection via JSX), escaping is unnecessary and is the https://react.i18next.com/latest/i18next-instance.
Steps to Reproduce
CORE-1935
Summary by CodeRabbit