OSDN Git Service

BugTrack2/361 Simplify URL. Keep slash / and colon : in page name URL
[pukiwiki/pukiwiki.git] / plugin / pcomment.inc.php
index ee1153f..036a14f 100644 (file)
@@ -18,7 +18,7 @@
 
 // Default recording page name (%s = $vars['page'] = original page name)
 switch (LANG) {
-case 'ja': define('PLUGIN_PCOMMENT_PAGE', '[[¥³¥á¥ó¥È/%s]]'); break;
+case 'ja': define('PLUGIN_PCOMMENT_PAGE', '[[コメント/%s]]'); break;
 default:   define('PLUGIN_PCOMMENT_PAGE', '[[Comments/%s]]'); break;
 }
 
@@ -58,7 +58,7 @@ function plugin_pcomment_action()
        }
 
        pkwk_headers_sent();
-       header('Location: ' . get_script_uri() . '?' . rawurlencode($refer));
+       header('Location: ' . get_script_uri() . '?' . pagename_urlencode($refer));
        exit;
 }
 
@@ -368,4 +368,4 @@ function plugin_pcomment_get_comments($page, $count, $dir, $reply)
 
        return array($comments, $digest);
 }
-?>
+