Review main Merged

70792[BUGFIX] Avoid access to $_SERVER['REQUEST_TIME']

Oli Bartsch CR +2 V +2 Normal +133 −49 updated 09/06/21, 11:29

Commit message

The ProductionExceptionHandler now uses the
Context API for generating the access time
string, which among others, is used in the
error code. Therefore, the class is also
refactored to use DI. This required to
remove the previously passed $configuration
argument from the constructor. It will now
be set via a new `setConfiguration()` method.
Passing the $configuration as constructor
argument is marked as deprecated, affecting
installations, using custom exception handler
classes.

Additionally, another regression, introduced
in #94315, is fixed. A custom error message,
configured in TypoScript, using the `%s`
placeholder, was no longer be substituted with
the actual error, making any mapping between
frontend output and log entry impossible. This
is fixed by replacing the `%s` with the new
`{code}` placeholder.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 2

Files 7