From e7d660149eaad5f562fc986a42a2f39b1c2f1b95 Mon Sep 17 00:00:00 2001 From: Scott Hamper Date: Sat, 3 Nov 2018 16:57:02 -0400 Subject: [PATCH] Fixed markdown parsing for telephone links (#2235) Telephone links use the `+` character to specify a country code, but Grav was replacing the `+` with a space character. --- system/src/Grav/Common/Helpers/Excerpts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Helpers/Excerpts.php b/system/src/Grav/Common/Helpers/Excerpts.php index 697e619059..53faaf4df7 100644 --- a/system/src/Grav/Common/Helpers/Excerpts.php +++ b/system/src/Grav/Common/Helpers/Excerpts.php @@ -117,7 +117,7 @@ public static function getHtmlFromExcerpt($excerpt) */ public static function processLinkExcerpt($excerpt, Page $page, $type = 'link') { - $url = htmlspecialchars_decode(urldecode($excerpt['element']['attributes']['href'])); + $url = htmlspecialchars_decode(rawurldecode($excerpt['element']['attributes']['href'])); $url_parts = static::parseUrl($url);