You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sandbox: compare str-subclass keys as plain strings #764
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.
Activity