Nyholm / psr7

A super lightweight PSR-7 implementation
MIT License
1.15k stars 75 forks source link

Encode only reserved characters in user-info #221

Closed nicolas-grekas closed 1 year ago

nicolas-grekas commented 1 year ago

Fix #219

This is enough to produce non-broken URLs.

nicolas-grekas commented 1 year ago

/cc @dbu FYI

dbu commented 1 year ago

btw, you might want to mention this in the changelog. there is an edge case when people use getUserInfo and assume that the info is not urlencoded it will now be urlencoded...

nicolas-grekas commented 1 year ago

See #218 for the changelog proposal.