~sircmpwn/sr.ht-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH todo.sr.ht] Fix label length validation

Details
Message ID
<20200519082914.76079-1-ivan@habunek.com>
DKIM signature
pass
Download raw message
Patch: +1 -1
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
Details
Message ID
<C2XINJE6PY5U.347H2GGYH3OKD@homura>
In-Reply-To
<20200519082914.76079-1-ivan@habunek.com> (view parent)
DKIM signature
pass
Download raw message
A fix for this bug has already landed upstream.
Reply to thread Export thread (mbox)