From e35bce21a0dfecfe2b30f50f10ca9bd2d5a59696 Mon Sep 17 00:00:00 2001 From: umorigu Date: Fri, 18 Aug 2017 04:10:45 +0900 Subject: [PATCH] BugTrack/2361 Simple Pagename URL for ls2 plugin --- plugin/ls2.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/ls2.inc.php b/plugin/ls2.inc.php index 4dbcc7c..ac781f5 100644 --- a/plugin/ls2.inc.php +++ b/plugin/ls2.inc.php @@ -126,10 +126,9 @@ function plugin_ls2_get_headings($page, & $params, $level, $include = FALSE) $is_done = (isset($params["page_$page"]) && $params["page_$page"] > 0); if (! $is_done) $params["page_$page"] = ++$_ls2_anchor; - $r_page = rawurlencode($page); $s_page = htmlsc($page); $title = $s_page . ' ' . get_pg_passage($page, FALSE); - $href = $script . '?cmd=read&page=' . $r_page; + $href = $script . '?' . pagename_urlencode($page); plugin_ls2_list_push($params, $level); $ret = $include ? '
  • include ' : '
  • '; -- 2.11.0