Skip to content

Commit

Permalink
Fixed markdown parsing for telephone links (#2235)
Browse files Browse the repository at this point in the history
Telephone links use the `+` character to specify a country code, but Grav was replacing the `+` with a space character.
  • Loading branch information
ScottHamper authored and rhukster committed Nov 3, 2018
1 parent 829638c commit e7d6601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Helpers/Excerpts.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e7d6601

Please sign in to comment.