From 4cd5b8c1ac8f66a14f2b07353b049f4576c66585 Mon Sep 17 00:00:00 2001 From: rr- Date: Wed, 11 May 2016 21:37:42 +0200 Subject: [PATCH] server/tags: fix tag category color validation This was totally stupid... --- server/szurubooru/func/tag_categories.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/szurubooru/func/tag_categories.py b/server/szurubooru/func/tag_categories.py index c5f088f..b4da67c 100644 --- a/server/szurubooru/func/tag_categories.py +++ b/server/szurubooru/func/tag_categories.py @@ -51,7 +51,7 @@ def update_category_name(category, name): def update_category_color(category, color): if not color: raise InvalidTagCategoryNameError('Color cannot be empty.') - if not re.match(r'^#?[a-z]+$', color): + if not re.match(r'^#?[0-9a-z]+$', color): raise InvalidTagCategoryNameError('Invalid color.') if util.value_exceeds_column_size(color, db.TagCategory.color): raise InvalidTagCategoryColorError('Color is too long.')