This repository has been archived by the owner on Mar 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
47 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @subpackage League\Uri\Schemes | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* @license https://github.com/thephpleague/uri-components/blob/master/LICENSE (MIT License) | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @link https://github.com/thephpleague/uri-components | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
|
@@ -371,6 +371,10 @@ protected function formatHost($host) | |
$component = ''; | ||
$valid_ascii_label_characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-'; | ||
foreach (explode('.', mb_strtolower($host, 'UTF-8')) as $label) { | ||
if (false !== strpos($label, '%')) { | ||
$label = rawurldecode($label); | ||
} | ||
|
||
if (strlen($label) !== strspn($label, $valid_ascii_label_characters)) { | ||
$label = (string) idn_to_ascii($label, IDNA_NONTRANSITIONAL_TO_ASCII, INTL_IDNA_VARIANT_UTS46); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @subpackage League\Uri\Schemes | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* @license https://github.com/thephpleague/uri-components/blob/master/LICENSE (MIT License) | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @link https://github.com/thephpleague/uri-components | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* @author Ignace Nyamagana Butera <[email protected]> | ||
* @copyright 2017 Ignace Nyamagana Butera | ||
* @license https://github.com/thephpleague/uri-manipulations/blob/master/LICENSE (MIT License) | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @link https://github.com/thephpleague/uri-manipulations | ||
*/ | ||
declare(strict_types=1); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @subpackage League\Uri\Schemes | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* @license https://github.com/thephpleague/uri-components/blob/master/LICENSE (MIT License) | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @link https://github.com/thephpleague/uri-components | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @subpackage League\Uri\Schemes | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* @license https://github.com/thephpleague/uri-components/blob/master/LICENSE (MIT License) | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @link https://github.com/thephpleague/uri-components | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @subpackage League\Uri\Schemes | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* @license https://github.com/thephpleague/uri-components/blob/master/LICENSE (MIT License) | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @link https://github.com/thephpleague/uri-components | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @subpackage League\Uri\Schemes | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* @license https://github.com/thephpleague/uri-components/blob/master/LICENSE (MIT License) | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @link https://github.com/thephpleague/uri-components | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @subpackage League\Uri\Schemes | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* @license https://github.com/thephpleague/uri-components/blob/master/LICENSE (MIT License) | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @link https://github.com/thephpleague/uri-components | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @subpackage League\Uri\Schemes | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* @license https://github.com/thephpleague/uri-components/blob/master/LICENSE (MIT License) | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @link https://github.com/thephpleague/uri-components | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @subpackage League\Uri\Schemes | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* @license https://github.com/thephpleague/uri-components/blob/master/LICENSE (MIT License) | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @link https://github.com/thephpleague/uri-components | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @subpackage League\Uri\Schemes | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* @license https://github.com/thephpleague/uri-components/blob/master/LICENSE (MIT License) | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @link https://github.com/thephpleague/uri-components | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @subpackage League\Uri\Schemes | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* @license https://github.com/thephpleague/uri-components/blob/master/LICENSE (MIT License) | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @link https://github.com/thephpleague/uri-components | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @subpackage League\Uri\Schemes | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* @license https://github.com/thephpleague/uri-components/blob/master/LICENSE (MIT License) | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @link https://github.com/thephpleague/uri-components | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @subpackage League\Uri\Schemes | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* @license https://github.com/thephpleague/uri-components/blob/master/LICENSE (MIT License) | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @link https://github.com/thephpleague/uri-components | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @subpackage League\Uri\Schemes | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* @license https://github.com/thephpleague/uri-components/blob/master/LICENSE (MIT License) | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @link https://github.com/thephpleague/uri-components | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @subpackage League\Uri\Schemes | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* @license https://github.com/thephpleague/uri-parser/blob/master/LICENSE (MIT License) | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @link https://github.com/thephpleague/uri-parser/ | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @subpackage League\Uri\Schemes | ||
* @author Ignace Nyamagana Butera <[email protected]> | ||
* @license https://github.com/thephpleague/uri-components/blob/master/LICENSE (MIT License) | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @link https://github.com/thephpleague/uri-components | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* @author Ignace Nyamagana Butera <[email protected]> | ||
* @copyright 2017 Ignace Nyamagana Butera | ||
* @license https://github.com/thephpleague/uri-manipulations/blob/master/LICENSE (MIT License) | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @link https://github.com/thephpleague/uri-manipulations | ||
*/ | ||
declare(strict_types=1); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters