Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make allowed_deserialization_classes more intuitive #28829

Merged
merged 2 commits into from
Jan 10, 2023

Commits on Jan 10, 2023

  1. Make allowed_deserialization_classes more intuitive

    Regexps can be tough to get right. Typically someone would like
    to allow any classes below 'mymodule' to match. For example,
    'mymodule.dataclasses' by setting allowed_deserialization_classes
    to 'mymodule.*'. However this matches everything starting with
    mymodule, so also mymodulemalicious. This change replaces
    bare '.' with '\..' so it matches the literal '.' as well.
    bolkedebruin committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    5830047 View commit details
    Browse the repository at this point in the history
  2. Fix

    bolkedebruin committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    bfa30ca View commit details
    Browse the repository at this point in the history