Changeset 7105

Show
Ignore:
Timestamp:
11/29/08 16:46:07 (6 weeks ago)
Author:
inureyes
Message:

refs #1156

  • RSS 출력시 주소 검색하는 부분의 버그 수정
Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/interface/rss/index.php

    r7103 r7105  
    99requireModel("blog.feed"); 
    1010requireModel("blog.entry"); 
    11  
    1211requireStrictBlogURL(); 
    13 if (false) { 
    14     fetchConfigVal(); 
    15 } 
    1612publishEntries(); 
    1713if (!file_exists(ROOT . "/cache/rss/$blogid.xml")) 
  • trunk/library/auth.php

    r7051 r7105  
    109109 
    110110function requireStrictBlogURL() { 
    111     global $isStrictBlogURL; 
    112     if(isset($isStrictBlogURL) && $isStrictBlogURL == true) return; 
     111    $context = Context::getInstance(); 
     112    if(isset($context->isStrictBlogURL) && $context->isStrictBlogURL == true) return; 
    113113    header('HTTP/1.1 404 Not found'); 
    114114    exit; 
  • trunk/library/components/Textcube.Data.Context.php

    r7075 r7105  
    99{ 
    1010    public $URLInfo, $suri; 
    11     public static $blogid; 
     11    public static $blogid, $isStrictURL; 
    1212 
    1313    public static function getInstance() { 
     
    3434        $suri            = array('url' => $url, 'value' => ''); 
    3535        $this->blogid    = null; 
    36         $isStrictBlogURL = true; 
     36        $this->isStrictBlogURL = true; 
    3737        $depth           = substr_count($config->service['path'], '/'); 
    3838        if ($depth > 0) { 
     
    6565                    if ($this->blogid === null) { 
    6666                        $this->blogid = $defaultblogid; 
    67                         $isStrictBlogURL = false; 
     67                        $this->isStrictBlogURL = false; 
    6868                    } 
    6969                    $url = $matches[2];