Learn about Centmin Mod LEMP Stack today
Become a Member

Beta Branch add _dmotd_push_status validator and migrate 10 push sites in 140.00b…

Discussion in 'Centmin Mod Github Commits' started by eva2000, May 20, 2026.

  1. eva2000

    eva2000 Administrator Staff Member

    59,480
    12,536
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,176
    Local Time:
    12:28 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    add _dmotd_push_status validator and migrate 10 push sites in 140.00beta01

    Introduces a tag-validating helper that wraps every append to the
    _dmotd_status_lines accumulator. Three behavioral upgrades:

    1. Tag enum validation at push time. The tag must be one of
    ok|warn|crit; anything else is replaced with 'crit' and a stderr
    warning is emitted. crit is chosen over warn so a future security
    warning that silently loses its tag cannot downgrade to [OK].
    2. Embedded newline scrubbing. The footer renderer iterates one entry
    per array element; a multiline payload (e.g. captured needs-restart
    output) would otherwise only get a badge on its first line.
    3. Removes the render-side defensive fallback at the (previously)
    _tag == _text check. Push-time validation makes the render-time
    forgiveness path unreachable.


    All 10 existing push sites (check_git_major_branch, ngxver_checker,
    phpver_checker, gitenv_askupdate up-to-date / out-of-date branches,
    needrestart_check, csf_version_checker 4 branches) migrated to
    _dmotd_push_status calls.

    Continue reading...

    140.00beta01 branch