Skip to content

Fix notice when verifying empty request URI#78

Open
clue wants to merge 1 commit into
ratchetphp:masterfrom
clue-labs:empty-request-uri
Open

Fix notice when verifying empty request URI#78
clue wants to merge 1 commit into
ratchetphp:masterfrom
clue-labs:empty-request-uri

Conversation

@clue
Copy link
Copy Markdown
Member

@clue clue commented May 31, 2026

This changeset avoids a PHP notice when verifying a request with an empty request URI. An empty URI was already rejected as invalid, but reading the first character to check for a leading slash triggered an "Uninitialized string offset" notice before returning. An empty string is now rejected up front.

Closes #74

@clue clue added this to the 0.4.1 milestone May 31, 2026
@clue clue added the bug label May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PHP Notice: Uninitialized string offset: 0 RequestVerifier.php on line 56

1 participant