⌈⌋ branch:  freshcode


Check-in [792720840e]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1 Hash:792720840e7d6779bcd57a38ba2d0cc77a53d794
Date: 2017-01-31 18:42:53
User: mario
Comment:Recent updates to basic spam blacklist.
Tags And Properties
  • branch=trunk inherited from [82405bb421]
  • sym-trunk inherited from [82405bb421]
Context
2017-01-31
18:43
[f21257ed67] Additional howto/comments on login page regarding `lock` field requiring proper password hash or OpenID handle. (user: mario, tags: trunk)
18:42
[792720840e] Recent updates to basic spam blacklist. (user: mario, tags: trunk)
2016-11-03
21:29
[322785403d] Hash any literal passwords. (user: mario, tags: trunk)
Changes

Changes to aux.php.

331
332
333
334
335
336
337
338
339
340

341
342
343
344
345
346
347

/**
 * Trivial check against well-known project spam.
 *
 */
function data_blacklisted($release) {
    $rules = array(
        "submitter" => "/wilmix j/",
        "homepage" => "/wilmix7|zeesmovie|softwarereviews/",
        "name" => "/DOLLAR|JDollar|Jehovah|Millionaire *s/",

    );
    foreach ($rules as $field => $rx) {
        if (preg_match($rx, $release[$field])) {
            return TRUE;
        }
    }
    return false;







|
|

>







331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348

/**
 * Trivial check against well-known project spam.
 *
 */
function data_blacklisted($release) {
    $rules = array(
        "submitter" => "/wilmix j/i",
        "homepage" => "~wilmix|zeesmovie|softwarereviews|diclofenac|\/\/buy-~i",
        "name" => "/DOLLAR|JDollar|Jehovah|Millionaire *s/",
        "description" => "/viagra|levitra|tetracycline*s|quickbooks/",
    );
    foreach ($rules as $field => $rx) {
        if (preg_match($rx, $release[$field])) {
            return TRUE;
        }
    }
    return false;