| @@ 636-638 (lines=3) @@ | ||
| 633 | || $character > 0x7E && $character < 0xA0 |
|
| 634 | || $character > 0xD7FF && $character < 0xF900 |
|
| 635 | ) { |
|
| 636 | for ($j = $start; $j <= $i; $j++) { |
|
| 637 | $string .= '%' . strtoupper($bytes[$j]); |
|
| 638 | } |
|
| 639 | } |
|
| 640 | else { |
|
| 641 | for ($j = $start; $j <= $i; $j++) { |
|
| @@ 641-643 (lines=3) @@ | ||
| 638 | } |
|
| 639 | } |
|
| 640 | else { |
|
| 641 | for ($j = $start; $j <= $i; $j++) { |
|
| 642 | $string .= chr(hexdec($bytes[$j])); |
|
| 643 | } |
|
| 644 | } |
|
| 645 | } |
|
| 646 | } |
|
| @@ 651-653 (lines=3) @@ | ||
| 648 | // If we have any bytes left over they are invalid (i.e., we are |
|
| 649 | // mid-way through a multi-byte sequence) |
|
| 650 | if ($remaining) { |
|
| 651 | for ($j = $start; $j < $len; $j++) { |
|
| 652 | $string .= '%' . strtoupper($bytes[$j]); |
|
| 653 | } |
|
| 654 | } |
|
| 655 | ||
| 656 | return $string; |
|