17 $semicolon_pos = strrpos($uri->path,
';');
18 if ($semicolon_pos !==
false) {
19 $type = substr($uri->path, $semicolon_pos + 1);
20 $uri->path = substr($uri->path, 0, $semicolon_pos);
22 if (strpos(
$type,
'=') !==
false) {
24 list(
$key, $typecode) = explode(
'=',
$type, 2);
25 if (
$key !==
'type') {
27 $uri->path .=
'%3B' .
$type;
28 }
elseif ($typecode ===
'a' || $typecode ===
'i' || $typecode ===
'd') {
29 $type_ret =
";type=$typecode";
32 $uri->path .=
'%3B' .
$type;
34 $uri->path = str_replace(
';',
'%3B', $uri->path);
35 $uri->path .= $type_ret;