class Insecure
Same name in other branches
- 9 core/modules/editor/tests/modules/editor_test/src/EditorXssFilter/Insecure.php \Drupal\editor_test\EditorXssFilter\Insecure
- 8.9.x core/modules/editor/tests/modules/src/EditorXssFilter/Insecure.php \Drupal\editor_test\EditorXssFilter\Insecure
- 10 core/modules/editor/tests/modules/editor_test/src/EditorXssFilter/Insecure.php \Drupal\editor_test\EditorXssFilter\Insecure
Defines an insecure text editor XSS filter (for testing purposes).
Hierarchy
- class \Drupal\editor_test\EditorXssFilter\Insecure implements \Drupal\editor\EditorXssFilterInterface
Expanded class hierarchy of Insecure
5 string references to 'Insecure'
- ProjectRelease::isInsecure in core/
modules/ update/ src/ ProjectRelease.php - Determines if the release is insecure.
- ProjectReleaseTest::getValidData in core/
modules/ update/ tests/ src/ Unit/ ProjectReleaseTest.php - Gets valid data for a project release.
- SecurityAdvisoryTest::providerCreateFromArrayInvalidField in core/
modules/ system/ tests/ src/ Unit/ SecurityAdvisories/ SecurityAdvisoryTest.php - Data provider for testCreateFromArrayInvalidField().
- SecurityAdvisoryTest::providerCreateFromArrayMissingField in core/
modules/ system/ tests/ src/ Unit/ SecurityAdvisories/ SecurityAdvisoryTest.php - Data provider for testCreateFromArrayMissingField().
- update_calculate_project_update_status in core/
modules/ update/ update.compare.inc - Calculates the current update status of a specific project.
File
-
core/
modules/ editor/ tests/ modules/ editor_test/ src/ EditorXssFilter/ Insecure.php, line 13
Namespace
Drupal\editor_test\EditorXssFilterView source
class Insecure implements EditorXssFilterInterface {
/**
* {@inheritdoc}
*/
public static function filterXss($html, FilterFormatInterface $format, ?FilterFormatInterface $original_format = NULL) {
// Don't apply any XSS filtering, just return the string we received.
return $html;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
Insecure::filterXss | public static | function | Filters HTML to prevent XSS attacks when a user edits it in a text editor. | Overrides EditorXssFilterInterface::filterXss |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.