PLUS-POSTECH / soma

Cross-platform CTF problem container manager
Apache License 2.0
24 stars 3 forks source link

Sanitize names #53

Closed KSAlpha closed 5 years ago

KSAlpha commented 5 years ago

Current implementations do not require any conditions for a valid name. To prevent some errors which can happen by names, string sanitization is required.

Qwaz commented 5 years ago

Related #44

Qwaz commented 5 years ago

Idea: Introduce a new struct SanitizedString which is a thin wrapper around String. It only allows a subset of string which is both a valid cross-platform path and a valid docker identifier.