From 32977881f6e56f08d7ac5b24d4974acef7b62426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 27 Feb 2019 01:20:29 +0100 Subject: [PATCH] Support tilde in search MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes https://pagure.io/koji/issue/1294 Signed-off-by: Miro HronĨok --- www/kojiweb/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/kojiweb/index.py b/www/kojiweb/index.py index 04248dc5..79436a14 100644 --- a/www/kojiweb/index.py +++ b/www/kojiweb/index.py @@ -2215,7 +2215,7 @@ _infoURLs = {'package': 'packageinfo?packageID=%(id)i', 'win': 'archiveinfo?archiveID=%(id)i'} _VALID_SEARCH_CHARS = r"""a-zA-Z0-9""" -_VALID_SEARCH_SYMS = r""" @.,_/\()%+-*?|[]^$""" +_VALID_SEARCH_SYMS = r""" @.,_/\()%+-~*?|[]^$""" _VALID_SEARCH_RE = re.compile('^[' + _VALID_SEARCH_CHARS + re.escape(_VALID_SEARCH_SYMS) + ']+$') _DEFAULT_SEARCH_ORDER = { # For searches against large tables, use '-id' to show most recent first