Commit 754883a0 authored by xjm's avatar xjm
Browse files

Issue #2920008 by shashikant_chauhan: Add Change record to @deprecated for...

Issue #2920008 by shashikant_chauhan: Add Change record to @deprecated for UrlHelper::stripDangerousProtocols()
parent 91e668f5
...@@ -209,9 +209,6 @@ function valid_email_address($mail) { ...@@ -209,9 +209,6 @@ function valid_email_address($mail) {
* Drupal\Core\Template\Attribute, call * Drupal\Core\Template\Attribute, call
* \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() instead. * \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() instead.
* *
* @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols()
* @see \Drupal\Component\Utility\UrlHelper::filterBadProtocol()
*
* @deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. * @deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
* Use UrlHelper::stripDangerousProtocols() or UrlHelper::filterBadProtocol() * Use UrlHelper::stripDangerousProtocols() or UrlHelper::filterBadProtocol()
* instead. UrlHelper::stripDangerousProtocols() can be used in conjunction * instead. UrlHelper::stripDangerousProtocols() can be used in conjunction
...@@ -220,6 +217,10 @@ function valid_email_address($mail) { ...@@ -220,6 +217,10 @@ function valid_email_address($mail) {
* UrlHelper::filterBadProtocol() is functionality equivalent to check_url() * UrlHelper::filterBadProtocol() is functionality equivalent to check_url()
* apart from the fact it is protected from double escaping bugs. Note that * apart from the fact it is protected from double escaping bugs. Note that
* this method no longer marks its output as safe. * this method no longer marks its output as safe.
*
* @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols()
* @see \Drupal\Component\Utility\UrlHelper::filterBadProtocol()
* @see https://www.drupal.org/node/2560027
*/ */
function check_url($uri) { function check_url($uri) {
return Html::escape(UrlHelper::stripDangerousProtocols($uri)); return Html::escape(UrlHelper::stripDangerousProtocols($uri));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment