Changeset 5003

Show
Ignore:
Timestamp:
01/08/08 22:15:41 (11 months ago)
Author:
inureyes
Message:

#774

  • 컨텐츠를 인코딩해서 뿌려주도록 수정.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/model/blog.rss.php

    r5002 r5003  
    124124    $channel = array(); 
    125125    $channel['title'] = $blog['title']. ': '._text('최근 댓글 목록'); 
     126    $channel['link'] = "$defaultURL/"; 
    126127    $channel['description'] = $blog['description']; 
    127128    $channel['language'] = $blog['language']; 
     
    142143    foreach($result as $row) { 
    143144        $commentURL = $defaultURL."/".$row['entry']."#comment"; 
    144         $content = $row['comment']; 
     145        $content = htmlspecialchars($row['comment']); 
    145146        $item = array( 
    146147            'id' => $row['id'],  
     
    197198    foreach($result as $row) { 
    198199        $commentURL = $channel['link']."#comment"; 
    199         $content = $row['comment']; 
     200        $content = htmlspecialchars($row['comment']); 
    200201        $item = array( 
    201202            'id' => $row['id'],  
    202203            'title' => $row['title'],  
    203             'link' => $commentURL.$row['id'],  
     204            'link' => $channel['link']."#comment".$row['id'],  
    204205            'categories' => array(), 'description' => $content,  
    205206            'author' => '('.$row['name'].')',