delete_spammers.php: handle case of link with misspelled URL

This commit is contained in:
David Anderson 2024-05-25 12:45:39 -07:00
parent 2fc386dbaa
commit 67f4e72deb
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<?php
// This file is part of BOINC.
// http://boinc.berkeley.edu
// Copyright (C) 2015 University of California
// Copyright (C) 2024 University of California
//
// BOINC is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License
@ -141,6 +141,7 @@ function delete_list($fname) {
}
function has_link($x) {
if (strstr($x, "<a ")) return true;
if (strstr($x, "[url")) return true;
if (strstr($x, "http://")) return true;
if (strstr($x, "https://")) return true;