From 25bca124b4f4bfcc59eeda262c11c3389ebd2b27 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 6 Jan 2023 18:09:06 +0800 Subject: [PATCH] Update index.py --- plugins/webstats/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/webstats/index.py b/plugins/webstats/index.py index 3f815ed4a..b5ff5b4d6 100755 --- a/plugins/webstats/index.py +++ b/plugins/webstats/index.py @@ -406,7 +406,7 @@ def setSiteConf(): for v in ['cdn_headers', 'exclude_extension', 'exclude_status', 'exclude_ip']: data = checkArgs(args, [v]) if data[0]: - site_conf[v] = args[v].split("\\n") + site_conf[v] = args[v].strip().split("\\n") data = checkArgs(args, ['exclude_url']) if data[0]: