mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
改进__EXT__常量定义
This commit is contained in:
@@ -164,8 +164,8 @@ class App {
|
|||||||
if('/favicon.ico'==$_SERVER['PATH_INFO']){
|
if('/favicon.ico'==$_SERVER['PATH_INFO']){
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
$part = pathinfo($_SERVER['PATH_INFO']);
|
// URL后缀
|
||||||
define('__EXT__', isset($part['extension']) ? strtolower($part['extension']) : '');
|
define('__EXT__', strtolower(pathinfo($_SERVER['PATH_INFO'],PATHINFO_EXTENSION)));
|
||||||
$_SERVER['PATH_INFO'] = trim(preg_replace('/\.(' . trim($config['url_html_suffix'], '.') . ')$/i', '', $_SERVER['PATH_INFO']), '/');
|
$_SERVER['PATH_INFO'] = trim(preg_replace('/\.(' . trim($config['url_html_suffix'], '.') . ')$/i', '', $_SERVER['PATH_INFO']), '/');
|
||||||
if($_SERVER['PATH_INFO']) {
|
if($_SERVER['PATH_INFO']) {
|
||||||
$paths = explode($config['pathinfo_depr'], $_SERVER['PATH_INFO']);
|
$paths = explode($config['pathinfo_depr'], $_SERVER['PATH_INFO']);
|
||||||
|
|||||||
Reference in New Issue
Block a user