• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

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

Commit MetaInfo

修订版2534585cb0f413c5b4875a851ebdc49050b6ebc9 (tree)
时间2007-07-28 23:41:56
作者henoheno <henoheno>
Commiterhenoheno

Log Message

BugTrack2/255: Keep it $cantedit

更改概述

差异

--- a/lib/auth.php
+++ b/lib/auth.php
@@ -1,7 +1,7 @@
11 <?php
22 // PukiWiki - Yet another WikiWikiWeb clone
3-// $Id: auth.php,v 1.19 2005/06/13 14:02:07 henoheno Exp $
4-// Copyright (C) 2003-2005 PukiWiki Developers Team
3+// $Id: auth.php,v 1.20 2007/07/28 14:39:09 henoheno Exp $
4+// Copyright (C) 2003-2005, 2007 PukiWiki Developers Team
55 // License: GPL v2 or (at your option) any later version
66 //
77 // Authentication related functions
@@ -135,9 +135,10 @@ function check_editable($page, $auth_flag = TRUE, $exit_flag = TRUE)
135135 // With exit
136136 $body = $title = str_replace('$1',
137137 htmlspecialchars(strip_bracket($page)), $_title_cannotedit);
138- if (is_freeze($page))
138+ if (! is_cantedit($page) && is_freeze($page)) {
139139 $body .= '(<a href="' . $script . '?cmd=unfreeze&amp;page=' .
140140 rawurlencode($page) . '">' . $_msg_unfreeze . '</a>)';
141+ }
141142 $page = str_replace('$1', make_search($page), $_title_cannotedit);
142143 catbody($title, $page, $body);
143144 exit;
--- a/lib/file.php
+++ b/lib/file.php
@@ -1,6 +1,6 @@
11 <?php
22 // PukiWiki - Yet another WikiWikiWeb clone.
3-// $Id: file.php,v 1.80 2007/05/12 14:24:42 henoheno Exp $
3+// $Id: file.php,v 1.81 2007/07/28 14:41:56 henoheno Exp $
44 // Copyright (C)
55 // 2002-2007 PukiWiki Developers Team
66 // 2001-2002 Originally written by yu-ji
@@ -311,7 +311,6 @@ function add_recent($page, $recentpage, $subject = '', $limit = 0)
311311 set_file_buffer($fp, 0);
312312 flock($fp, LOCK_EX);
313313 rewind($fp);
314- fputs($fp, '#freeze' . "\n");
315314 fputs($fp, '#norelated' . "\n"); // :)
316315 fputs($fp, join('', $lines));
317316 flock($fp, LOCK_UN);