~sircmpwn/sr.ht-dev

todo.sr.ht: Fix label length validation v1 PROPOSED

Ivan Habunek: 1
 Fix label length validation

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/10690/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH todo.sr.ht] Fix label length validation Export this patch

https://todo.sr.ht/~sircmpwn/todo.sr.ht/181
---
 todosrht/blueprints/tracker.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/todosrht/blueprints/tracker.py b/todosrht/blueprints/tracker.py
index 6ef75fc..e64183d 100644
--- a/todosrht/blueprints/tracker.py
+++ b/todosrht/blueprints/tracker.py
@@ -227,7 +227,7 @@ def validate_label(request):
    if not valid.ok:
        return None, valid

    valid.expect(2 < len(name) < 50,
    valid.expect(2 <= len(name) <= 50,
            "Must be between 2 and 50 characters", field="name")
    valid.expect(valid_hex_color_code(color),
            "Invalid hex color code", field="color")
-- 
2.26.2
A fix for this bug has already landed upstream.