Revision | e35bce21a0dfecfe2b30f50f10ca9bd2d5a59696 (tree) |
---|---|
Zeit | 2017-08-18 04:10:45 |
Autor | umorigu <umorigu@gmai...> |
Commiter | umorigu |
BugTrack/2361 Simple Pagename URL for ls2 plugin
@@ -126,10 +126,9 @@ function plugin_ls2_get_headings($page, & $params, $level, $include = FALSE) | ||
126 | 126 | $is_done = (isset($params["page_$page"]) && $params["page_$page"] > 0); |
127 | 127 | if (! $is_done) $params["page_$page"] = ++$_ls2_anchor; |
128 | 128 | |
129 | - $r_page = rawurlencode($page); | |
130 | 129 | $s_page = htmlsc($page); |
131 | 130 | $title = $s_page . ' ' . get_pg_passage($page, FALSE); |
132 | - $href = $script . '?cmd=read&page=' . $r_page; | |
131 | + $href = $script . '?' . pagename_urlencode($page); | |
133 | 132 | |
134 | 133 | plugin_ls2_list_push($params, $level); |
135 | 134 | $ret = $include ? '<li>include ' : '<li>'; |