~sircmpwn/todo.sr.ht

9f4d75f42c528080d82d79484ca2521ddb5cab04 — Drew DeVault a month ago dedc26a 0.64.20
Prohibit trackers named . or ..
1 files changed, 3 insertions(+), 0 deletions(-)

M todosrht/types/tracker.py
M todosrht/types/tracker.py => todosrht/types/tracker.py +3 -0
@@ 72,6 72,9 @@ class Tracker(Base):
        valid.expect(not valid.ok or name_re.match(name),
                "Only alphanumeric characters or <samp>._-</samp>",
                field="name")
        valid.expect(not valid.ok or name not in [".", ".."],
                "Name cannot be '.' or '..'",
                field="name")
        valid.expect(not desc or len(desc) < 4096,
                "Must be less than 4096 characters",
                field="description")