map clean urls to .php files in phar

This commit is contained in:
Christian Weiske 2011-09-05 18:16:28 +02:00
parent fb4d822f31
commit 995dbef2a1

View File

@ -25,6 +25,11 @@ function mapUrls($path)
if (isset($arMap[$path])) {
return $arMap[$path];
}
$pos = strrpos($path, '.');
if ($pos === false || strlen($path) - $pos > 5) {
//clean url
$path .= '.php';
}
return '/www' . $path;
}