• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision3982177cb4734d77c8e5bcae20f3739424f041f2 (tree)
Time2014-11-26 02:27:34
Authorhenoheno <henoheno>
Commiterumorigu

Log Message

BugTrack2/235: Clear the sort_flag: ksort()

Change Summary

Incremental Difference

--- a/lib/func.php
+++ b/lib/func.php
@@ -388,7 +388,7 @@ function page_list($pages, $cmd = 'read', $withfilename = FALSE)
388388
389389 $list[$head][$page] = $str;
390390 }
391- ksort($list);
391+ ksort($list, SORT_STRING);
392392
393393 $cnt = 0;
394394 $arr_index = array();
@@ -409,7 +409,7 @@ function page_list($pages, $cmd = 'read', $withfilename = FALSE)
409409 '"><strong>' . $head . '</strong></a>' . "\n" .
410410 ' <ul>' . "\n";
411411 }
412- ksort($pages);
412+ ksort($pages, SORT_STRING);
413413 $retval .= join("\n", $pages);
414414 if ($list_index)
415415 $retval .= "\n </ul>\n </li>\n";
--- a/lib/html.php
+++ b/lib/html.php
@@ -187,7 +187,7 @@ function edit_form($page, $postdata, $digest = FALSE, $b_template = TRUE)
187187 $pages[$_page] = ' <option value="' . $s_page . '">' .
188188 $s_page . '</option>';
189189 }
190- ksort($pages);
190+ ksort($pages, SORT_STRING);
191191 $s_pages = join("\n", $pages);
192192 $template = <<<EOD
193193 <select name="template_page">
@@ -276,7 +276,7 @@ function make_related($page, $tag = '')
276276 $links = links_get_related($page);
277277
278278 if ($tag) {
279- ksort($links);
279+ ksort($links, SORT_STRING);
280280 } else {
281281 arsort($links);
282282 }
--- a/plugin/attach.inc.php
+++ b/plugin/attach.inc.php
@@ -27,7 +27,7 @@ define('PLUGIN_ATTACH_DELETE_ADMIN_ONLY', TRUE); // FALSE or TRUE
2727
2828 // 管理者が添付ファイルを削除するときは、バックアップを作らない
2929 // PLUGIN_ATTACH_DELETE_ADMIN_ONLY=TRUEのとき有効
30-define('PLUGIN_ATTACH_DELETE_ADMIN_NOBACKUP', TRUE); // FALSE or TRUE
30+define('PLUGIN_ATTACH_DELETE_ADMIN_NOBACKUP', FALSE); // FALSE or TRUE
3131
3232 // アップロード/削除時にパスワードを要求する(ADMIN_ONLYが優先)
3333 define('PLUGIN_ATTACH_PASSWORD_REQUIRE', FALSE); // FALSE or TRUE
@@ -765,7 +765,7 @@ class AttachFiles
765765 if (! isset($_files[0])) {
766766 $_files[0] = htmlsc($file);
767767 }
768- ksort($_files);
768+ ksort($_files, SORT_NUMERIC);
769769 $_file = $_files[0];
770770 unset($_files[0]);
771771 $ret .= " <li>$_file\n";
@@ -840,7 +840,7 @@ class AttachPages
840840 $ret = '';
841841
842842 $pages = array_keys($this->pages);
843- sort($pages);
843+ sort($pages, SORT_STRING);
844844
845845 foreach ($pages as $page) {
846846 if (check_non_list($page)) continue;
--- a/plugin/related.inc.php
+++ b/plugin/related.inc.php
@@ -42,7 +42,7 @@ function plugin_related_action()
4242 $retval .= '<ul><li>No related pages found.</li></ul>' . "\n";
4343 } else {
4444 // Show count($data)?
45- ksort($data);
45+ ksort($data, SORT_STRING);
4646 $retval .= '<ul>' . "\n";
4747 foreach ($data as $page=>$time) {
4848 $r_page = rawurlencode($page);
--- a/plugin/rename.inc.php
+++ b/plugin/rename.inc.php
@@ -286,7 +286,7 @@ function plugin_rename_phase3($pages)
286286 <p>{$_rename_messages['msg_confirm']}</p>
287287 EOD;
288288
289- ksort($pages);
289+ ksort($pages, SORT_STRING);
290290 $ret['body'] .= '<ul>' . "\n";
291291 foreach ($pages as $old=>$new)
292292 $ret['body'] .= '<li>' . make_pagelink(decode($old)) .
@@ -413,7 +413,7 @@ function plugin_rename_getselecttag($page)
413413 $pages[$_page] = '<option value="' . $s_page . '"' . $selected . '>' .
414414 $s_page . '</option>';
415415 }
416- ksort($pages);
416+ ksort($pages, SORT_STRING);
417417 $list = join("\n" . ' ', $pages);
418418
419419 return <<<EOD
--- a/plugin/versionlist.inc.php
+++ b/plugin/versionlist.inc.php
@@ -1,11 +1,12 @@
11 <?php
2-// $Id: versionlist.inc.php,v 1.15 2005/01/29 02:12:52 henoheno Exp $
3-/*
4- * PukiWiki versionlist plugin
5- *
6- * CopyRight 2002 S.YOSHIMURA GPL2
7- * http://masui.net/pukiwiki/ yosimura@excellence.ac.jp
8- */
2+// PukiWiki - Yet another WikiWikiWeb clone
3+// $Id: versionlist.inc.php,v 1.17 2007/05/12 08:37:38 henoheno Exp $
4+// Copyright (C)
5+// 2002-2006 PukiWiki Developers Team
6+// 2002 S.YOSHIMURA GPL2 yosimura@excellence.ac.jp
7+// License: GPL v2
8+//
9+// Listing cvs revisions of files
910
1011 function plugin_versionlist_action()
1112 {
@@ -59,7 +60,7 @@ function plugin_versionlist_convert()
5960 {
6061 return '';
6162 }
62- ksort($comments);
63+ ksort($comments, SORT_STRING);
6364 $retval = '';
6465 foreach ($comments as $comment)
6566 {