Skip to content

nested $raw passes the wrapper dict to the SQL filter#70

Merged
roed314 merged 1 commit into
roed314:masterfrom
roed-math:fix/raw-nested
Jul 20, 2026
Merged

nested $raw passes the wrapper dict to the SQL filter#70
roed314 merged 1 commit into
roed314:masterfrom
roed-math:fix/raw-nested

Conversation

@roed-math

Copy link
Copy Markdown

The documented form {'abvar_count': {'$lte': {'$raw': 'q^g'}}} — supported per the comment directly above the code — passed the whole {"$raw": ...} dictionary to filter_sql_injection, which raises TypeError on anything but a string. It now passes the expression.


Split out of #60 (one PR per issue). This branch carries only this issue's fix and its tests; the rest of the known-bug inventory stays xfailed, so the full suite is green here and the strict markers guarantee no cross-issue leakage.

The documented form {'abvar_count': {'$lte': {'$raw': 'q^g'}}} — supported per the comment directly above the code — passed the whole {"$raw": ...} dictionary to filter_sql_injection, which raises TypeError on anything but a string. It now passes the expression.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@roed314
roed314 merged commit 27dc24b into roed314:master Jul 20, 2026
16 checks passed
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