• R/O
  • HTTP
  • SSH
  • HTTPS

pukiwiki: Commit


Commit MetaInfo

Revisionb51c00dd185a9003c20f406aeb4f216937f99311 (tree)
Time2017-02-16 22:58:43
Authorumorigu <umorigu@gmai...>
Commiterumorigu

Log Message

BugTrack/598 List only readable pages as template

Change Summary

Incremental Difference

--- a/lib/html.php
+++ b/lib/html.php
@@ -2,7 +2,7 @@
22 // PukiWiki - Yet another WikiWikiWeb clone.
33 // html.php
44 // Copyright
5-// 2002-2016 PukiWiki Development Team
5+// 2002-2017 PukiWiki Development Team
66 // 2001-2002 Originally written by yu-ji
77 // License: GPL v2 or (at your option) any later version
88 //
@@ -232,7 +232,8 @@ function edit_form($page, $postdata, $digest = FALSE, $b_template = TRUE)
232232 }
233233 $page_names = array();
234234 foreach(get_existpages() as $_page) {
235- if ($_page == $whatsnew || check_non_list($_page))
235+ if ($_page == $whatsnew || check_non_list($_page) ||
236+ !is_page_readable($_page))
236237 continue;
237238 if (preg_match('/template/i', $_page)) {
238239 $tpage_names[] = $_page;
Show on old repository browser