Skip to content

Fix GH-24736: php_odbc_connstr_is_quoted() accepts missing closing brace - #24737

Merged
NattyNarwhal merged 2 commits into
php:PHP-8.4from
lazerg:fix/gh-24736-odbc-is-quoted
Oct 27, 2026
Merged

NattyNarwhal merged 2 commits into
php:PHP-8.4from
lazerg:fix/gh-24736-odbc-is-quoted

Conversation

@lazerg

@lazerg lazerg commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

The loop only rejected a } that wasn't doubled or at the end, so a value with no closing } at all (like {foo, or {foo}} where the last brace is escaped) came back as already quoted and skipped the UID/PWD quoting. Now it's only quoted if the scan actually ends on an unescaped }.

Fixes #24736

@NattyNarwhal
NattyNarwhal merged commit 9c7e43b into php:PHP-8.4 Oct 27, 2026
18 checks passed
NattyNarwhal added a commit that referenced this pull request Oct 27, 2026
* PHP-8.6:
  Fix GH-24736: php_odbc_connstr_is_quoted() accepts missing closing brace (#24737)
TimWolla pushed a commit to TimWolla/php-src that referenced this pull request Oct 27, 2026
* PHP-8.4:
  Fix phpGH-24736: php_odbc_connstr_is_quoted() accepts missing closing brace (php#24737)
TimWolla pushed a commit to TimWolla/php-src that referenced this pull request Oct 27, 2026
* PHP-8.5:
  Fix phpGH-24736: php_odbc_connstr_is_quoted() accepts missing closing brace (php#24737)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants