瀏覽代碼

Require OAuth for search engine checks

Begin requiring OAuth for search engine checks.
This adds an extra validation step in checker.py.
It occurs after a cached result is checked for, which
allows unauthenticated viewers to still preview cached
results.
pull/52/head
Chlod Alejandro 1 月之前
父節點
當前提交
10add79574
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: A1E67C59037B0CC1
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      copyvios/checker.py

+ 4
- 0
copyvios/checker.py 查看文件

@@ -144,6 +144,10 @@ def _perform_check(query, page, use_engine, use_links):
_LOGGER.exception("Failed to retrieve cached results")

if not query.result:
if use_engine and not query.requester_username and not query.api:
query.error = "not logged in"
return

try:
query.result = page.copyvio_check(
min_confidence=T_SUSPECT, max_queries=8, max_time=30,


Loading…
取消
儲存