Merge pull request #86 from Moobusy/master

改进Request类的pathinfo方法
This commit is contained in:
ThinkPHP
2016-05-24 07:55:18 +08:00

View File

@@ -324,7 +324,7 @@ class Request
}
}
}
$this->pathinfo = empty($_SERVER['PATH_INFO']) ? '/' : trim($_SERVER['PATH_INFO'], '/');
$this->pathinfo = empty($_SERVER['PATH_INFO']) ? '/' : ltrim($_SERVER['PATH_INFO'], '/');
}
return $this->pathinfo;
}