Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Support tel: and sms: upon IDNA conversion (see #6148)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Sep 16, 2013
1 parent 8020122 commit e596750
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 e596750

Please sign in to comment.