Skip to content

Commit

Permalink
Punycode lookup is case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Mar 3, 2015
1 parent 375e027 commit 9515482
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions framework/Idna/lib/Horde/Idna/Punycode.php
Expand Up @@ -203,6 +203,9 @@ protected function _decodePart($input)
$outputLength = strlen($output);
$inputLength = strlen($input);

/* Punycode lookup is case-insensitive. */
$input = strtolower($input);

while ($pos < $inputLength) {
$oldi = $i;
$w = 1;
Expand Down
1 change: 0 additions & 1 deletion framework/Idna/test/Horde/Idna/IdnaTest.php
Expand Up @@ -77,7 +77,6 @@ public function domainNamesProvider()
'உதாரணம்.பரிட்சை',
'xn--zkc6cc5bi7f6e.xn--hlcj6aya9esc7a',
),

array(
'derhausüberwacher.de',
'xn--derhausberwacher-pzb.de',
Expand Down

0 comments on commit 9515482

Please sign in to comment.