Skip to content

exp_request_shield 0.0.1.11

Latest

Choose a tag to compare

@se7enxweb se7enxweb released this 02 Dec 12:30
  • Fixed: On a Velocity instance that serves several installations, every request is decided with the rules, the store
    and the log of its own installation. A worker keeps the first copy of the extension's class it loaded, and
    EXP_REQUEST_PREPEND_FILE names the copy of the first installation that defined it, so every other installation of
    the instance was decided with that first one's rules, or not at all: Velocity runs installations whose index.php
    has no prepend line (kernels before 6.0.15) with one fresh worker per request, and there the hook only defined the
    constant and returned. Their budgets were never counted and their blocked paths (/wp-login.php) reached the site.
    Now the installation is the one at the request's document root (expRequestShield::forRequestRoot(),
    requestRootFor()), and the hook decides a request it sees being served (a worker forked for it runs config.php
    with the request; the warm-up has no address and no URI). A request both the hook and the prepend file reach is
    decided once (protectOnce()). PHP-FPM is unchanged. Roll out to every installation an instance serves: a worker
    takes the class from whichever installation it loads first.
  • Fixed: expRequestShield::VERSION read 0.0.1.9 in 0.0.1.10; it is the release's version again.