Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Avoid mixing printf and url_encode#52

Merged
pbrisbin merged 3 commits intomasterfrom
pb-url-encode
Jun 19, 2016
Merged

Avoid mixing printf and url_encode#52
pbrisbin merged 3 commits intomasterfrom
pb-url-encode

Conversation

@pbrisbin
Copy link
Owner

Previously, all values output by url_encode were sent through printf at some
point. This meant that url_encode should output its %-symbols doubly-escaped.
Recent changes avoided the need to printf certain URLs and so these double
%-symbols were problematic. The simplest solution at this time was to
%standardize on not using printf for these values (accepting the
%compatibility concerns of using echo) and removing the double escaping.

Fixes #51

pbrisbin added 3 commits June 19, 2016 08:49
Previously, all values output by url_encode were sent through printf at
some point. This meant that url_encode should output its %-symbols
doubly-escaped. Recent changes avoided the need to printf certain URLs
and so these double %-symbols were problematic. The simplest solution at
this time was to standardize on _not_ using printf for these values
(accepting the compatibility concerns of using echo) and removing the
double escaping.

Fixes #51
@pbrisbin pbrisbin merged commit 2777c3f into master Jun 19, 2016
@pbrisbin pbrisbin deleted the pb-url-encode branch June 19, 2016 13:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant