diff --git a/core/includes/common.inc b/core/includes/common.inc index eb21afe..da14330 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -288,9 +288,9 @@ function valid_email_address($mail) { * instead. UrlHelper::stripDangerousProtocols() can be used in conjunction * with \Drupal\Component\Utility\SafeMarkup::format() and an @variable * placeholder which will perform the necessary escaping. - * UrlHelper::filterBadProtocol() is an equivalent method apart from the fact - * the it can be called multiple times on the same url without double - * escaping. Note that this method does not mark it's output as safe. + * UrlHelper::filterBadProtocol() is functionality equivalent to check_url() + * apart from the fact it is protected from double escaping bugs. Note that + * this method no longer marks its output as safe. * */ function check_url($uri) { diff --git a/core/modules/comment/comment.tokens.inc b/core/modules/comment/comment.tokens.inc index ac61719..500533e 100644 --- a/core/modules/comment/comment.tokens.inc +++ b/core/modules/comment/comment.tokens.inc @@ -6,6 +6,7 @@ */ use Drupal\Component\Utility\Html; +use Drupal\Component\Utility\UrlHelper; use Drupal\Component\Utility\Xss; use Drupal\Core\Datetime\Entity\DateFormat; use Drupal\Core\Render\BubbleableMetadata;