Commit 71a45a63 authored by Frank Anderson's avatar Frank Anderson Committed by Derek Wright
Browse files

Issue #3216344 by frob, dww: \Drupal::config returns null if the config isn't set

parent 7a622064
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -161,7 +161,7 @@ function _pathologic_replace($matches) {
      // @see http://drupal.org/node/1834308
      // Default value is ['http', 'https', 'files', 'internal']
      // "files" and "internal" are for Path Filter compatibility.
      && !in_array($parts['scheme'], \Drupal::config('pathologic.settings')->get('scheme_whitelist'))
      && !in_array($parts['scheme'], \Drupal::config('pathologic.settings')->get('scheme_whitelist') ?? [])
    )
    // Bail out if it looks like there's only a fragment part.
    || (isset($parts['fragment']) && count($parts) === 1)