• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

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

Commit MetaInfo

修訂4a5af8e6174a3ee920f3319a5105a39bbb2a80c7 (tree)
時間2007-10-15 00:49:57
作者henoheno <henoheno>
Commiterhenoheno

Log Message

BugTrack2/281: page_write(): unset($oldpostdata, $diffdata);

Change Summary

差異

--- 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.88 2007/10/06 13:20:48 henoheno Exp $
3+// $Id: file.php,v 1.89 2007/10/14 15:49:57 henoheno Exp $
44 // Copyright (C)
55 // 2002-2007 PukiWiki Developers Team
66 // 2001-2002 Originally written by yu-ji
@@ -93,6 +93,7 @@ function page_write($page, $postdata, $notimestamp = FALSE)
9393 $oldpostdata = is_page($page) ? get_source($page, TRUE, TRUE) : '';
9494 $diffdata = do_diff($oldpostdata, $postdata);
9595 file_write(DIFF_DIR, $page, $diffdata);
96+ unset($oldpostdata, $diffdata);
9697
9798 // Create backup
9899 make_backup($page, $postdata == ''); // Is $postdata null?