Skip to content

Do not HTML-escape extension values#2023

Merged
Hayden-IO merged 1 commit into
sigstore:mainfrom
Hayden-IO:no-more-html
Apr 24, 2025
Merged

Do not HTML-escape extension values#2023
Hayden-IO merged 1 commit into
sigstore:mainfrom
Hayden-IO:no-more-html

Conversation

@Hayden-IO

Copy link
Copy Markdown
Contributor

This fixes a bug report where extensions contained HTML-escaped characters, e.g. < rather than <. The root cause and the fix is simple: instead of using html/template, we should use text/template which does not escape any characters.

Summary

Release Note

Documentation

This fixes a bug report where extensions contained HTML-escaped
characters, e.g. &lt; rather than <. The root cause and the fix is
simple: instead of using html/template, we should use text/template
which does not escape any characters.

Signed-off-by: Hayden B <8418760+haydentherapper@users.noreply.github.com>
@Hayden-IO Hayden-IO requested a review from bobcallaway April 23, 2025 21:58
@Hayden-IO Hayden-IO requested a review from a team as a code owner April 23, 2025 21:58

@woodruffw woodruffw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks a ton!

@codecov

codecov Bot commented Apr 23, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.55%. Comparing base (cf238ac) to head (c34a34a).
Report is 351 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2023       +/-   ##
===========================================
- Coverage   57.93%   43.55%   -14.39%     
===========================================
  Files          50       73       +23     
  Lines        3119     5722     +2603     
===========================================
+ Hits         1807     2492      +685     
- Misses       1154     3001     +1847     
- Partials      158      229       +71     

☔ View full report in Codecov by Sentry.
📢 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.

@Hayden-IO

Copy link
Copy Markdown
Contributor Author

Also LOL at the description, I typed &lt;

@Hayden-IO Hayden-IO merged commit 59479c9 into sigstore:main Apr 24, 2025
@Hayden-IO Hayden-IO deleted the no-more-html branch April 24, 2025 00:52
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