diff --git a/core/modules/editor/editor.module b/core/modules/editor/editor.module index b130626..7fa3c05 100644 --- a/core/modules/editor/editor.module +++ b/core/modules/editor/editor.module @@ -317,7 +317,7 @@ function editor_filter_xss($html, FilterFormatInterface $format, FilterFormatInt $editor_xss_filter_class = '\Drupal\editor\EditorXssFilter\Standard'; \Drupal::moduleHandler()->alter('editor_xss_filter', $editor_xss_filter_class, $format, $original_format); - return call_user_func($editor_xss_filter_class . '::xssFilter', $html, $format, $original_format); + return call_user_func($editor_xss_filter_class . '::filterXss', $html, $format, $original_format); } /** diff --git a/core/modules/editor/editor.routing.yml b/core/modules/editor/editor.routing.yml index 39fff13..dc41d18 100644 --- a/core/modules/editor/editor.routing.yml +++ b/core/modules/editor/editor.routing.yml @@ -1,7 +1,7 @@ editor.filter_xss: path: '/editor/filter_xss/{filter_format}' defaults: - _controller: '\Drupal\editor\EditorController::xssFilter' + _controller: '\Drupal\editor\EditorController::filterXss' requirements: _entity_access: 'filter_format.use' diff --git a/core/modules/editor/src/EditorXssFilter/Standard.php b/core/modules/editor/src/EditorXssFilter/Standard.php index d0aeb82..43ef797 100644 --- a/core/modules/editor/src/EditorXssFilter/Standard.php +++ b/core/modules/editor/src/EditorXssFilter/Standard.php @@ -171,7 +171,7 @@ protected static function getForbiddenTags($restrictions) { * {@inheritdoc} */ protected static function needsRemoval($html_tags, $elem) { - // See static::xssFilter() about how this class uses blacklisting instead + // See static::filterXss() about how this class uses blacklisting instead // of the normal whitelisting. return !parent::needsRemoval($html_tags, $elem); }