OSDN Git Service

BugTrack/2187 Fix doubled HTML-escaped text in bugtrack_list summary
[pukiwiki/pukiwiki.git] / plugin / read.inc.php
index 7654416..5614903 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: read.inc.php,v 1.8 2005/01/15 13:57:07 henoheno Exp $
+// $Id: read.inc.php,v 1.9 2011/01/25 15:01:01 henoheno Exp $
 //
 // Read plugin: Show a page and InterWiki
 
@@ -11,23 +11,23 @@ function plugin_read_action()
        $page = isset($vars['page']) ? $vars['page'] : '';
 
        if (is_page($page)) {
-               // ¥Ú¡¼¥¸¤òɽ¼¨
+               // ページを表示
                check_readable($page, true, true);
                header_lastmod($page);
                return array('msg'=>'', 'body'=>'');
 
        } else if (! PKWK_SAFE_MODE && is_interwiki($page)) {
-               return do_plugin_action('interwiki'); // InterWikiName¤ò½èÍý
+               return do_plugin_action('interwiki'); // InterWikiNameを処理
 
        } else if (is_pagename($page)) {
                $vars['cmd'] = 'edit';
-               return do_plugin_action('edit'); // Â¸ºß¤·¤Ê¤¤¤Î¤Ç¡¢ÊÔ½¸¥Õ¥©¡¼¥à¤òɽ¼¨
+               return do_plugin_action('edit'); // 存在しないので、編集フォームを表示
 
        } else {
-               // Ìµ¸ú¤Ê¥Ú¡¼¥¸Ì¾
+               // 無効なページ名
                return array(
                        'msg'=>$_title_invalidwn,
-                       'body'=>str_replace('$1', htmlspecialchars($page),
+                       'body'=>str_replace('$1', htmlsc($page),
                                str_replace('$2', 'WikiName', $_msg_invalidiwn))
                );
        }