summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxjm2017-11-10 09:10:12 -0600
committerxjm2017-11-10 09:10:12 -0600
commit754883a074258b60f3585e9b286da7d47f7325a0 (patch)
tree6d0c197099169e23e613058c0d7ef37218a8d87e
parent91e668f5758159b27bea9e4bc3247969fa91232a (diff)
Issue #2920008 by shashikant_chauhan: Add Change record to @deprecated for UrlHelper::stripDangerousProtocols()
-rw-r--r--core/includes/common.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/includes/common.inc b/core/includes/common.inc
index bed7adc..d20feb4 100644
--- a/core/includes/common.inc
+++ b/core/includes/common.inc
@@ -209,9 +209,6 @@ function valid_email_address($mail) {
* Drupal\Core\Template\Attribute, call
* \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.
* Use UrlHelper::stripDangerousProtocols() or UrlHelper::filterBadProtocol()
* instead. UrlHelper::stripDangerousProtocols() can be used in conjunction
@@ -220,6 +217,10 @@ function valid_email_address($mail) {
* 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.
+ *
+ * @see \Drupal\Component\Utility\UrlHelper::stripDangerousProtocols()
+ * @see \Drupal\Component\Utility\UrlHelper::filterBadProtocol()
+ * @see https://www.drupal.org/node/2560027
*/
function check_url($uri) {
return Html::escape(UrlHelper::stripDangerousProtocols($uri));