From ab606e0629b74afa4f05a1a71066a1e6a3ce70a7 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 13 Dec 2024 02:32:45 +0800 Subject: [PATCH] Update index.py --- plugins/gorse/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/gorse/index.py b/plugins/gorse/index.py index 6de72ef1a..15ae0f79d 100755 --- a/plugins/gorse/index.py +++ b/plugins/gorse/index.py @@ -125,7 +125,7 @@ def initRedisConf(): requirepass = "" conf = mw.getServerDir() + '/redis/redis.conf' content = mw.readFile(conf) - rep = r"^(requirepass" + r"\)\s*([.0-9A-Za-z_& ~]+)" + rep = r"^(requirepass)\s*([.0-9A-Za-z_& ~]+)" tmp = re.search(rep, content, re.M) if tmp: requirepass = tmp.groups()[1]