Skip to content

fix(cli): escape backslashes in inspect schema patterns#5568

Merged
jgoux merged 1 commit into
developfrom
fix/like-escape-schema-backslashes
Jun 15, 2026
Merged

fix(cli): escape backslashes in inspect schema patterns#5568
jgoux merged 1 commit into
developfrom
fix/like-escape-schema-backslashes

Conversation

@jgoux

@jgoux jgoux commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Escapes backslashes when building SQL LIKE patterns for legacy inspect db internal schema filters.

Context

Code scanning flagged the previous sanitizer because it escaped underscores without escaping existing backslashes, which could let a backslash alter the meaning of the following pattern character.

Impact

Backslash-containing schema names now produce literal LIKE patterns while existing internal schema wildcard behavior stays unchanged.

@jgoux jgoux marked this pull request as ready for review June 12, 2026 21:12
@jgoux jgoux requested a review from a team as a code owner June 12, 2026 21:12
@github-actions

Copy link
Copy Markdown

Supabase CLI preview

npx --yes https://pkg.pr.new/supabase@5568

Preview package for commit cde9c27.

@jgoux jgoux added this pull request to the merge queue Jun 15, 2026
Merged via the queue into develop with commit d6648d7 Jun 15, 2026
27 checks passed
@jgoux jgoux deleted the fix/like-escape-schema-backslashes branch June 15, 2026 08:10
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.

2 participants