This commit is contained in:
Joseph Cheung 2023-03-01 23:29:02 +08:00
parent a81e99ecf4
commit f63e0b2bdf
2 changed files with 79 additions and 4 deletions

File diff suppressed because one or more lines are too long

View file

@ -803,6 +803,7 @@ def search():
if 'url' not in res: continue
if 'title' not in res: continue
if request.environ['HTTP_CF_IPCOUNTRY'] == 'CN' and gfw.filter(res['title']):
return index_error(output_format, 'No query'), 400
if 'content' not in res: continue
if request.environ['HTTP_CF_IPCOUNTRY'] == 'CN' and gfw.filter(res['content']):
return index_error(output_format, 'No query'), 400