Skip to content

Decode URL-encoded cashier form values#58

Merged
fifle merged 1 commit into
masterfrom
claude/add-yahad-donation-link-lmOFe
Mar 12, 2026
Merged

Decode URL-encoded cashier form values#58
fifle merged 1 commit into
masterfrom
claude/add-yahad-donation-link-lmOFe

Conversation

@fifle

@fifle fifle commented Mar 12, 2026

Copy link
Copy Markdown
Owner

Summary

This PR adds URL decoding to form field values in the cashier form component to properly display URL-encoded data.

Key Changes

  • Applied urldecode() to campaign_title hidden input value
  • Applied urldecode() to payee hidden input value
  • Applied urldecode() to detail hidden input value (2 occurrences)
  • Applied urldecode() to detail text input placeholder

Details

The changes ensure that URL-encoded parameters passed to the cashier form are properly decoded before being displayed in form fields and placeholders. This prevents users from seeing encoded characters (e.g., %20 for spaces) in the form UI while maintaining the correct values for form submission.

https://claude.ai/code/session_01Q8WZCKWbyEcCurQrT3odmq

The cashier controller rawurlencode()s all parameters, but the form
hidden inputs were outputting the encoded values directly. When the
browser submits the form, it encodes them again, causing %20 to become
%2520. Now using urldecode() on the hidden input values and the
editable detail field so the browser's own encoding produces correct
single-encoded URLs.

https://claude.ai/code/session_01Q8WZCKWbyEcCurQrT3odmq
@fifle fifle merged commit 2a5c43d into master Mar 12, 2026
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.

2 participants