Skip to content

Fix. Code. Replacing the first occurrence of the search only in the element text - #905

Merged
AntonV1211 merged 5 commits into
devfrom
vuln_xss_av
Oct 13, 2026
Merged

AntonV1211 merged 5 commits into
devfrom
vuln_xss_av

Conversation

@AntonV1211

Copy link
Copy Markdown
Contributor

@codecov

codecov Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 32.69%. Comparing base (b6dd817) to head (69890aa).
⚠️ Report is 12 commits behind head on dev.

Additional details and impacted files
@@             Coverage Diff              @@
##                dev     #905      +/-   ##
============================================
+ Coverage     32.45%   32.69%   +0.23%     
- Complexity     6948     6955       +7     
============================================
  Files           296      296              
  Lines         27216    27231      +15     
============================================
+ Hits           8833     8903      +70     
+ Misses        18383    18328      -55     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The standalone ContactsEncoder asset still uses the old replacement logic and must be updated.

1 open finding
What changed in this PR

Updates email decoding to replace only text-node content, preserving markup and attributes.

Changes:

  • Added text-node replacement logic.
  • Updated public bundles and admin artifacts.
  • Regenerated the source map.
File Reviewed change
js/​src/​common-decoder.js Updated decoder; standalone ContactsEncoder asset still needs the same fix.
js/​prebuild/​apbct-public-bundle.js Updated generated bundle.
js/​prebuild/​apbct-public-bundle_int-protection.js Updated generated bundle.
js/​prebuild/​apbct-public-bundle_int-protection_gathering.js Updated generated bundle.
js/​prebuild/​apbct-public-bundle_gathering.js Updated generated bundle.
js/​prebuild/​apbct-public-bundle_full-protection.js Updated generated bundle.
js/​prebuild/​apbct-public-bundle_full-protection_gathering.js Updated generated bundle.
js/​prebuild/​apbct-public-bundle_ext-protection.js Updated generated bundle.
js/​prebuild/​apbct-public-bundle_ext-protection_gathering.js Updated generated bundle.
js/​cleantalk-admin.min.js.map Regenerated source map.
js/​cleantalk-admin.min.js Updated minified admin bundle.

🧠 Review effort: Lite


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread js/src/common-decoder.js Outdated
@AntonV1211
AntonV1211 requested a review from Glomberg October 12, 2026 11:54
@AntonV1211
AntonV1211 merged commit 8ebc19a into dev Oct 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants