Révision | d08df6021d15dbf677bb0b59a635fbf34b5c4d8a (tree) |
---|---|
l'heure | 2005-02-20 21:50:06 |
Auteur | henoheno <henoheno> |
Commiter | henoheno |
BugTrack2/9: Off-by-one error allows #freeze locking
@@ -1,6 +1,6 @@ | ||
1 | 1 | <?php |
2 | 2 | // PukiWiki - Yet another WikiWikiWeb clone. |
3 | -// $Id: func.php,v 1.30 2005/01/27 12:50:43 henoheno Exp $ | |
3 | +// $Id: func.php,v 1.31 2005/02/20 12:50:06 henoheno Exp $ | |
4 | 4 | // |
5 | 5 | // General functions |
6 | 6 |
@@ -78,7 +78,7 @@ function is_freeze($page, $clearcache = FALSE) | ||
78 | 78 | $fp = fopen(get_filename($page), 'rb'); |
79 | 79 | flock($fp, LOCK_SH); |
80 | 80 | rewind($fp); |
81 | - $buffer = fgets($fp, 8); | |
81 | + $buffer = fgets($fp, 9); | |
82 | 82 | flock($fp, LOCK_UN); |
83 | 83 | fclose($fp); |
84 | 84 |