• 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

Revisiónb9c36a7889ae9d858e6150aa0c0a9aeb04719ae2 (tree)
Tiempo2007-07-28 22:56:44
Autorhenoheno <henoheno>
Commiterhenoheno

Log Message

BugTrack2/255: Keep it $cantedit

Cambiar Resumen

Diferencia incremental

--- a/plugin/freeze.inc.php
+++ b/plugin/freeze.inc.php
@@ -1,6 +1,6 @@
11 <?php
22 // PukiWiki - Yet another WikiWikiWeb clone.
3-// $Id: freeze.inc.php,v 1.9 2004/12/16 13:32:19 henoheno Exp $
3+// $Id: freeze.inc.php,v 1.10 2007/07/28 13:56:44 henoheno Exp $
44 //
55 // Freeze(Lock) plugin
66
@@ -14,7 +14,7 @@ function plugin_freeze_action()
1414 global $_msg_invalidpass, $_msg_freezing, $_btn_freeze;
1515
1616 $page = isset($vars['page']) ? $vars['page'] : '';
17- if (! $function_freeze || ! is_page($page))
17+ if (! $function_freeze || is_cantedit($page) || ! is_page($page))
1818 return array('msg' => '', 'body' => '');
1919
2020 $pass = isset($vars['pass']) ? $vars['pass'] : NULL;
--- a/plugin/unfreeze.inc.php
+++ b/plugin/unfreeze.inc.php
@@ -1,6 +1,6 @@
11 <?php
22 // PukiWiki - Yet another WikiWikiWeb clone.
3-// $Id: unfreeze.inc.php,v 1.11 2007/01/21 14:27:08 henoheno Exp $
3+// $Id: unfreeze.inc.php,v 1.12 2007/07/28 13:56:44 henoheno Exp $
44 // Copyright (C) 2003-2004 PukiWiki Developers Team
55 // License: GPL v2 or (at your option) any later version
66 //
@@ -16,7 +16,7 @@ function plugin_unfreeze_action()
1616 global $_msg_invalidpass, $_msg_unfreezing, $_btn_unfreeze;
1717
1818 $page = isset($vars['page']) ? $vars['page'] : '';
19- if (! $function_freeze || ! is_page($page))
19+ if (! $function_freeze || is_cantedit($page) || ! is_page($page))
2020 return array('msg' => '', 'body' => '');
2121
2222 $pass = isset($vars['pass']) ? $vars['pass'] : NULL;