by xjm: More coding standards fixes.

merge-requests/25/head
xjm 2020-09-16 06:46:24 -05:00
parent 08607fbb51
commit 12a3e7bafb
2 changed files with 1 additions and 2 deletions

View File

@ -859,7 +859,7 @@ class FormBuilder implements FormBuilderInterface, FormValidatorInterface, FormS
// https://www.drupal.org/node/2504709. // https://www.drupal.org/node/2504709.
$parsed = UrlHelper::parse($request_uri); $parsed = UrlHelper::parse($request_uri);
unset($parsed['query'][static::AJAX_FORM_REQUEST], $parsed['query'][MainContentViewSubscriber::WRAPPER_FORMAT]); unset($parsed['query'][static::AJAX_FORM_REQUEST], $parsed['query'][MainContentViewSubscriber::WRAPPER_FORMAT]);
$action = $parsed['path'] . ($parsed['query'] ? ('?' . UrlHelper::buildQuery($parsed['query'])) : ''); $action = $parsed['path'] . ($parsed['query'] ? ('?' . UrlHelper::buildQuery($parsed['query'])) : '');
return UrlHelper::filterBadProtocol($action); return UrlHelper::filterBadProtocol($action);
} }

View File

@ -3,7 +3,6 @@
namespace Drupal\filter\Plugin\Filter; namespace Drupal\filter\Plugin\Filter;
use Drupal\Component\Utility\Html; use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\Xss;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\filter\FilterPluginManager; use Drupal\filter\FilterPluginManager;
use Drupal\filter\FilterProcessResult; use Drupal\filter\FilterProcessResult;