Skip to content

Sandbox: compare str-subclass keys as plain strings #764

Open

Description

@JuroOravec

The expression sandbox in citry-core checks some names with methods called on the key itself (such as key.startswith(...)). When app code passes a key that is a str subclass, the subclass's own method runs instead of str's. Request data only ever produces plain str values, so this concerns keys built in app code.

Proposal: compare keys as plain strings (str.startswith(key, ...), or convert with str.__str__ first), as citry-ui does since #757. Sweep the crate and the Python glue for the same pattern.

🤖 Generated with Claude Code

Activity

  1. added this to the 1.1.0 milestone on Nov 18, 2026
  2. added
    next-sprint
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    next-sprint

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions