Skip to content

fix(client): percent-encode path parameters and reject dot segments - #100

Draft
tbarbugli wants to merge 1 commit into
masterfrom
tommaso/sec-2510-path-param-encoding
Draft

tbarbugli wants to merge 1 commit into
masterfrom
tommaso/sec-2510-path-param-encoding

Conversation

@tbarbugli

@tbarbugli tbarbugli commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Linear: SEC-2510

Summary

  • Percent-encode path parameter values in Client::makeRequest() with rawurlencode() instead of substituting raw strings.
  • Reject empty strings and dot segments (. / ..) when building request paths.
  • Add unit tests in tests/ClientTest.php covering special characters and dot segments.

Note: OpenAPI-generated traits under src/Generated/*Trait.php are produced by the generator in GetStream/chat and should be updated there so generated path substitutions match.

Testing

  • make lint && make test-unit (PHPStan 0 errors, 340 PHPUnit tests passing)

This branch has not been deployed

No deployments
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.

1 participant