* adjust the strpos to strrpos.

This commit is contained in:
wangchunsheng
2011-04-06 08:33:20 +00:00
parent d66c1bc05e
commit 3c5c445dc4
+1 -1
View File
@@ -803,7 +803,7 @@ class router
if(empty($pathInfo)) $pathInfo = $this->getPathInfo('ORIG_PATH_INFO');
if(!empty($pathInfo))
{
$dotPos = strpos($pathInfo, '.');
$dotPos = strrpos($pathInfo, '.');
if($dotPos)
{
$this->URI = substr($pathInfo, 0, $dotPos);