Skip to content

fix(HTTP): fix query string truncation in SiteURIFactory::parseRequestURI() - #10769

Merged
michalsn merged 1 commit into
codeigniter4:developfrom
gr8man:fix/siteurifactory-query-string-truncation
Nov 13, 2026
Merged

michalsn merged 1 commit into
codeigniter4:developfrom
gr8man:fix/siteurifactory-query-string-truncation

Conversation

@gr8man

@gr8man gr8man commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Description
Fixes an issue where SiteURIFactory::parseRequestURI() truncated QUERY_STRING to a single character ($query[1]) instead of using the parsed query string segment ($parts[1]) when using query-based routing (/?route?param=val). This preserves GET parameters in $_SERVER['QUERY_STRING'], $_GET, and $_REQUEST when the route path is provided via query string.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@carson-codeigniter4 carson-codeigniter4 Bot added the bug Verified issues on the current code behavior or pull requests that will fix them label Nov 12, 2026
@gr8man
gr8man force-pushed the fix/siteurifactory-query-string-truncation branch 2 times, most recently from 5f1419c to 080a2b8 Compare November 12, 2026 20:41
@gr8man
gr8man force-pushed the fix/siteurifactory-query-string-truncation branch from 080a2b8 to d88a904 Compare November 13, 2026 10:10
@michalsn
michalsn merged commit 6f92d1f into codeigniter4:develop Nov 13, 2026
59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Verified issues on the current code behavior or pull requests that will fix them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants