Changeset 4858

Show
Ignore:
Timestamp:
12/24/07 12:27:57 (2 years ago)
Author:
inureyes
Message:

#718

  • 번호로 글 참조하는 경우 (entry를 숫자로 접근하는 경우) 발생하는 에러 수정
  • reported by McFuture
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/rewrite.php

    r4855 r4858  
    3434        $interfacePath = 'blog/'.$accessInfo['URLfragment'][0].'/index.php'; 
    3535    } else if(is_numeric($lastElm[0])) { 
    36         $interfacePath = 'blog/'.strtok(implode('/',array_slice($accessInfo['URLfragment'],0,count($firstElm)-1)), '&').'/item.php'; 
     36        $pathPart = strtok(implode('/',array_slice($accessInfo['URLfragment'],0,count($accessInfo['URLfragment'])-1)), '&'); 
     37        $interfacePath = 'blog/'.(empty($pathPart) ? '' : $pathPart.'/').'item.php'; 
    3738    } else { 
    3839        $interfacePath = 'blog/'.(empty($pathPart) ? '' : $pathPart.'/').'index.php';