宝塔站点 配置防盗链 配置路径改写为/xxx.png 导致报错
[url=]AttributeError: 'NoneType' object has no attribute 'groups'[/url]
[url=]Traceback (most recent call last): File "/www/server/panel/class/panelSite.py", line 5449, in GetSecurity data['domains'] = ','.join(list(set(re.search("valid_referers\s+none\s+blocked\s+(.+);\n", tmp).groups()[0].split())))AttributeError: 'NoneType' object has no attribute 'groups'During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/www/server/panel/BTPanel/__init__.py", line 2315, in publicObject res = run_obj.run(toObject, defs, get) File "/www/server/panel/BTPanel/__init__.py", line 2262, in run result = getattr(toObject, get.action)(get) File "/www/server/panel/class/panelSite.py", line 5451, in GetSecurity data['domains'] = ','.join(list(set(re.search("valid_referers\s+(.+);\n", tmp).groups()[0].split())))AttributeError: 'NoneType' object has no attribute 'groups'[/url]
|
|