Skip to content

Commit

Permalink
Support tel: and sms: upon IDNA conversion (see contao#6148)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer authored and ralfhartmann committed Oct 2, 2013
1 parent a9fa008 commit b566025
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions system/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Contao Open Source CMS Changelog
Version 3.1.3 (2013-XX-XX)
--------------------------

### Fixed
Support `tel:` and `sms:` upon IDNA conversion (see #6148).

### Fixed
Apply the width and height to the audio player as well (see #6114).

Expand Down
4 changes: 4 additions & 0 deletions system/modules/core/library/Contao/Idna.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ public static function encodeUrl($strUrl)
{
unset($arrUrl['scheme']);
}
elseif ($arrUrl['scheme'] == 'tel' || $arrUrl['scheme'] == 'sms')
{
$arrUrl['scheme'] .= ':'; // see #6148
}
else
{
$arrUrl['scheme'] .= '://';
Expand Down

0 comments on commit b566025

Please sign in to comment.