StudSec / pwncrates

A CTF framework with a focus on educational benefit.
https://ctf.studsec.nl
GNU General Public License v3.0
5 stars 8 forks source link

Switch challenge name source from path to README #43

Open delta6862 opened 6 months ago

delta6862 commented 6 months ago

Currently, the challenge name is pulled from the path

def update_or_create_challenge(path, folder=get_challenge_path()):
    # Get information
    category, name, _ = path.split("/", 2)

While fine for most names, it can generate issues and uncertainties with certain characters (the most obvious example being a \).

Instead it would be better to take the formal name from the challenge README (which also has the title)