Commit 3534a345 authored by Max Pogonowski's avatar Max Pogonowski Committed by rsvelko
Browse files

Issue #3292255 by Steven McCoy, szymon-gorecki, darvanen, kalpaitch: Can't...

Issue #3292255 by Steven McCoy, szymon-gorecki, darvanen, kalpaitch: Can't pass NULL url to Drupal\Component\Utility\UrlHelper isExternal
parent 2092dad6
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -185,11 +185,7 @@ class LoginDestinationManager implements LoginDestinationManagerInterface {
    if ($config->get('preserve_destination')) {
      // Get current destination value.
      $drupal_destination = $this->requestStack->getCurrentRequest()->query->get('destination');
      if (UrlHelper::isExternal($drupal_destination)) {
        $drupal_destination = NULL;
      }
      // Determine if a destination exist in the URL.
      if (!empty($drupal_destination)) {
      if ($drupal_destination && !UrlHelper::isExternal($drupal_destination)) {
        return;
      }
    }