6 calls to UrlHelper::filterBadProtocol()
- CommentTokenReplaceTest::testCommentTokenReplacement in core/
modules/ comment/ tests/ src/ Functional/ CommentTokenReplaceTest.php - Creates a comment, then tests the tokens generated from it.
- FormBuilder::buildFormAction in core/
lib/ Drupal/ Core/ Form/ FormBuilder.php - Builds the $form['#action'].
- UrlHelperTest::testFilterBadProtocol in core/
tests/ Drupal/ Tests/ Component/ Utility/ UrlHelperTest.php - Tests bad protocol filtering and escaping.
- UserLoginBlock::renderPlaceholderFormAction in core/
modules/ user/ src/ Plugin/ Block/ UserLoginBlock.php - #lazy_builder callback; renders a form action URL including destination.
- Xss::attributes in core/
lib/ Drupal/ Component/ Utility/ Xss.php - Processes a string of HTML attributes.
- XssUnitTest::testBadProtocolStripping in core/
tests/ Drupal/ KernelTests/ Core/ Common/ XssUnitTest.php - Checks that harmful protocols are stripped.
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.