修訂 | 4a5af8e6174a3ee920f3319a5105a39bbb2a80c7 (tree) |
---|---|
時間 | 2007-10-15 00:49:57 |
作者 | henoheno <henoheno> |
Commiter | henoheno |
BugTrack2/281: page_write(): unset($oldpostdata, $diffdata);
@@ -1,6 +1,6 @@ | ||
1 | 1 | <?php |
2 | 2 | // 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 $ | |
4 | 4 | // Copyright (C) |
5 | 5 | // 2002-2007 PukiWiki Developers Team |
6 | 6 | // 2001-2002 Originally written by yu-ji |
@@ -93,6 +93,7 @@ function page_write($page, $postdata, $notimestamp = FALSE) | ||
93 | 93 | $oldpostdata = is_page($page) ? get_source($page, TRUE, TRUE) : ''; |
94 | 94 | $diffdata = do_diff($oldpostdata, $postdata); |
95 | 95 | file_write(DIFF_DIR, $page, $diffdata); |
96 | + unset($oldpostdata, $diffdata); | |
96 | 97 | |
97 | 98 | // Create backup |
98 | 99 | make_backup($page, $postdata == ''); // Is $postdata null? |