Skip to content
Snippets Groups Projects

Issue #2707689: NodeForm::actions() checks for delete access on new entities

1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
  • 784ee657
    Issue #3279289 by rizzie, claudiu.cristea, Berdir, cilefen:... · 784ee657
    catch authored
    Issue #3279289 by rizzie, claudiu.cristea, Berdir, cilefen: file_requirements() can trigger a PHP 8.1 deprecation notice when called without a SERVER_SOFTWARE server env variable
@@ -69,7 +69,9 @@ function file_requirements($phase) {
if ($phase == 'runtime') {
$description = NULL;
$implementation = file_progress_implementation();
$server_software = \Drupal::request()->server->get('SERVER_SOFTWARE');
// The environment variable might be missing. Fallback to an empty string to
// prevent passing NULL to preg_match(), a few lines later.
$server_software = \Drupal::request()->server->get('SERVER_SOFTWARE', '');
// Test the web server identity.
if (preg_match("/Nginx/i", $server_software)) {
Loading