Commit 3f1796c3 authored by Geoffrey Roberts's avatar Geoffrey Roberts
Browse files

3405414: Default to empty string when file has no extension

parent 4ab85c06
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -126,7 +126,7 @@ class StageFileProxySubscriber implements EventSubscriberInterface {
    $excluded_extensions = $config->get('excluded_extensions') ?
      array_map('trim', explode(',', $config->get('excluded_extensions'))) : [];

    $extension = pathinfo($request_path)['extension'];
    $extension = pathinfo($request_path)['extension'] ?? '';
    if (in_array($extension, $excluded_extensions)) {
      return;
    }