Skip to content

Commit

Permalink
Fixed #4722
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Aug 7, 2019
1 parent 88aca8b commit 259297c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release Notes for Craft CMS 3.x

## Unreleased

### Fixed
- Fixed a PHP error that could occur on environments where the Intl PHP extension was installed but the `IDNA_NONTRANSITIONAL_TO_ASCII` or `INTL_IDNA_VARIANT_UTS46` constants weren’t defined. ([#4722](https://github.com/craftcms/cms/issues/4722))

## 3.2.9 - 2019-08-06

### Added
Expand Down
2 changes: 2 additions & 0 deletions src/web/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,8 @@ private function _requestedSite(Sites $sitesService): Site
$parsed['host'] !== $hostName &&
(
!function_exists('idn_to_ascii') ||
!defined('IDNA_NONTRANSITIONAL_TO_ASCII') ||
!defined('INTL_IDNA_VARIANT_UTS46') ||
idn_to_ascii($parsed['host'], IDNA_NONTRANSITIONAL_TO_ASCII, INTL_IDNA_VARIANT_UTS46) !== $hostName
)
) {
Expand Down

0 comments on commit 259297c

Please sign in to comment.