Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix double-escaping of the curl and Python example code #709

Merged
merged 2 commits into from
Jun 10, 2024

Conversation

SpecLad
Copy link
Contributor

@SpecLad SpecLad commented Mar 11, 2024

These code fragments are escaped when they are substituted into the silk/request.html template, so they should not be escaped an extra time when they are constructed.

Fixes #688.

SpecLad and others added 2 commits March 11, 2024 23:23
These code fragments are escaped when they are substituted into the
`silk/request.html` template, so they should not be escaped an extra time
when they are constructed.
Copy link

codecov bot commented Mar 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.80%. Comparing base (1cb4623) to head (8f96658).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #709      +/-   ##
==========================================
+ Coverage   86.76%   86.80%   +0.04%     
==========================================
  Files          52       52              
  Lines        2115     2115              
==========================================
+ Hits         1835     1836       +1     
+ Misses        280      279       -1     

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

Copy link
Member

@50-Course 50-Course left a comment

Choose a reason for hiding this comment

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

Hello again @SpecLad, this patch looks good to me, and ready for release.

One more pass from the team and we are good to go, @Archmonger can you take a look at this?

CC: @albertyw

silk/code_generation/curl.py Show resolved Hide resolved
@Archmonger
Copy link
Contributor

Archmonger commented Mar 24, 2024

Sure I can review this tomorrow, but I'm technically not an admin for this repo.

Copy link
Contributor

@Archmonger Archmonger left a comment

Choose a reason for hiding this comment

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

Seems like fairly simple and straightforward fix. I'm good with this change.

The proper course of action would be to wait for a project lead such as @albertyw to approve this.

@albertyw albertyw merged commit 508ba34 into jazzband:master Jun 10, 2024
90 checks passed
@SpecLad SpecLad deleted the fix-double-escaping branch June 10, 2024 08:57
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.

Curl and Django Test Client URL parameters are being url encoded
5 participants