OSDN Git Service
(root)
/
pukiwiki
/
pukiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
817f5ea
)
BugTrack2/9: Off-by-one error allows #freeze locking
author
henoheno
<henoheno>
Sun, 20 Feb 2005 12:50:06 +0000
(21:50 +0900)
committer
henoheno
<henoheno>
Sun, 20 Feb 2005 12:50:06 +0000
(21:50 +0900)
lib/func.php
patch
|
blob
|
history
diff --git
a/lib/func.php
b/lib/func.php
index
7c416f8
..
a9b1dfa
100644
(file)
--- a/
lib/func.php
+++ b/
lib/func.php
@@
-1,6
+1,6
@@
<?php
// PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: func.php,v 1.3
0 2005/01/27 12:50:43
henoheno Exp $
+// $Id: func.php,v 1.3
1 2005/02/20 12:50:06
henoheno Exp $
//
// General functions
@@
-78,7
+78,7
@@
function is_freeze($page, $clearcache = FALSE)
$fp = fopen(get_filename($page), 'rb');
flock($fp, LOCK_SH);
rewind($fp);
- $buffer = fgets($fp,
8
);
+ $buffer = fgets($fp,
9
);
flock($fp, LOCK_UN);
fclose($fp);