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: In r/demo/profile fieldHandler, use url.QueryEscape(value) #2642

Merged

Conversation

jefft0
Copy link
Contributor

@jefft0 jefft0 commented Jul 30, 2024

In r/demo/profile, if the Bio field is "My bio", then the web render for r/demo/profile:f/g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5/Bio shows:

Bio: My bio [Edit](/r/demo/profile?help&__func=SetStringField&field=Bio&addr=g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5&value=My bio)

The [Edit] link doesn't display properly because of the space in "My bio". This PR updates fieldHandler to use url.QueryEscape. With this fix the web render is as expected with the correct [Edit] link:

Bio: My bio Edit

@jefft0 jefft0 requested review from a team as code owners July 30, 2024 13:29
@jefft0 jefft0 requested review from ajnavarro and ltzmaxwell and removed request for a team July 30, 2024 13:29
@github-actions github-actions bot added the 🧾 package/realm Tag used for new Realms or Packages. label Jul 30, 2024
Copy link

codecov bot commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.08%. Comparing base (0e3c050) to head (139a3a1).
Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2642      +/-   ##
==========================================
+ Coverage   54.99%   60.08%   +5.09%     
==========================================
  Files         595      560      -35     
  Lines       79775    74750    -5025     
==========================================
+ Hits        43872    44914    +1042     
+ Misses      32581    26446    -6135     
- Partials     3322     3390      +68     
Flag Coverage Δ
contribs/gnodev 61.40% <ø> (+35.40%) ⬆️
contribs/gnofaucet 14.46% <ø> (ø)
gno.land 64.15% <ø> (ø)
gnovm 64.19% <ø> (+3.98%) ⬆️
misc/genstd 80.54% <ø> (ø)
misc/logos 19.88% <ø> (+2.50%) ⬆️
tm2 61.99% <ø> (+7.50%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@thehowl thehowl merged commit d9925bf into gnolang:master Jul 30, 2024
116 checks passed
@jefft0 jefft0 deleted the fix/r-demo-profile-fieldHandler-QueryEscape branch August 9, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧾 package/realm Tag used for new Realms or Packages.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants