Skip to content

Commit

Permalink
More spam
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Sep 23, 2024
1 parent e242386 commit 56b59d9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions repologyapp/views/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,11 +490,13 @@ def project_report(name: str) -> Response:
if not need_verignore and not need_split and not need_merge and not need_vuln and not comment:
errors.append('please fill out the form')

if comment and '<a href' in comment:
errors.append('spammers not welcome, HTML not allowed')

if comment and 'า' in comment: # thai spam
errors.append('spammers not welcome, HTML not allowed')
if comment:
if '<a href' in comment:
errors.append('spammers not welcome, HTML not allowed')
if 'า' in comment: # thai spam
errors.append('spammers not welcome')
if 'rubika' in comment or comment.endswith('CVE-'): # iran spam
errors.append('spammers not welcome')

if need_verignore and need_split and need_merge and need_vuln and not comment:
errors.append('spammers not welcome')
Expand Down

0 comments on commit 56b59d9

Please sign in to comment.