Skip to content

Repo already exists as a dojo check doesn't fully work #937

@Leonabcd123

Description

@Leonabcd123

Tested it with "pwncollege/intro-to-cybersecurity-dojo/" (notice the last / at the end), and it allowed me to create a new dojo with the same repo, bypassing this check:

if Dojos.query.filter_by(repository=repository).first():
  raise AssertionError("This repository already exists as a dojo")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions