map clean urls to .php files in phar
This commit is contained in:
parent
fb4d822f31
commit
995dbef2a1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user