// This odd construct prevents us from strposing once there is no
// longer an $arg to replace.
if ($where && $where = strpos('$arg', $url)) {
- $url = str_replace($url, $arg, $where, 4);
+ $url = substr_replace($url, $arg, $where, 4);
}
else {
$url .= "/$arg";
}
$args[] = $arg;
if ($where && $where = strpos('$arg', $url)) {
- $url = str_replace($url, $arg, $where, 4);
+ $url = substr_replace($url, $arg, $where, 4);
}
else {
$url .= "/$arg";