⌈⌋ branch:  freshcode


Check-in [9c4fb2c6b2]

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

Overview
Comment:Change `f_version()` back to allow meta characters `~+()#/@:` in release versions.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:9c4fb2c6b2690941ccafcb3456caa249fe4bb46f
User & Date: mario 2016-05-31 10:14:31
Context
2016-11-03
16:58
Fixed HTML escaping for password field. check-in: 453b4e3a7d user: mario tags: trunk
2016-05-31
10:14
Change `f_version()` back to allow meta characters `~+()#/@:` in release versions. check-in: 9c4fb2c6b2 user: mario tags: trunk
2016-05-05
02:13
A bit more padding-top check-in: 162e7d3eb3 user: mario tags: trunk
Changes

Changes to aux.php.

29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
...
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
            [  "-",            "$1",                               ",",             " ",             ", "    ,      ""      ],
            strtolower($s)
        );
}

// Version numbers, remove non-word characters, compact spaces, strip leftmost "v" prefix
function f_version($s) {
    return trim(preg_replace("/(?<=\s)\s+|^[vV](?![a-z])/", "", trim(input::words($s))));
}


#-- Template helpers

// Wrap tag list into links
function wrap_tags($tags, $r="") {
................................................................................
/**
 * Trivial check against well-known project spam.
 *
 */
function data_blacklisted($release) {
    $rules = array(
        "submitter" => "/wilmix j/",
        "homepage" => "/wilmix7|zeesmovie/",
        "name" => "/DOLLAR|JDollar|Jehovah/",
    );
    foreach ($rules as $field => $rx) {
        if (preg_match($rx, $release[$field])) {
            return TRUE;
        }
    }
    return false;







|







 







|
|







29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
...
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
            [  "-",            "$1",                               ",",             " ",             ", "    ,      ""      ],
            strtolower($s)
        );
}

// Version numbers, remove non-word characters, compact spaces, strip leftmost "v" prefix
function f_version($s) {
    return trim(preg_replace("/(?<=\s)\s+|^[vV](?![a-z])/", "", trim(input::words($s, "~+()#\/@:"))));
}


#-- Template helpers

// Wrap tag list into links
function wrap_tags($tags, $r="") {
................................................................................
/**
 * 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;