| 203 | | list (self::$current_uri, $query) = explode('?', self::$segments, 2); |
| 204 | | |
| 205 | | // Insert query into GET array |
| 206 | | foreach(explode('&', $query) as $pair) |
| 207 | | { |
| 208 | | list ($key, $val) = array_pad(explode('=', $pair), 1, ''); |
| 209 | | |
| 210 | | $_GET[utf8::clean($key)] = utf8::clean($val); |
| 211 | | } |
| | 203 | list (self::$current_uri, $query) = explode('?', self::$current_uri, 2); |
| | 204 | |
| | 205 | // Parse the query string into $_GET |
| | 206 | parse_str($query, $_GET); |
| | 207 | |
| | 208 | // Convert $_GET to UTF-8 |
| | 209 | $_GET = utf8::clean($_GET); |