diff options
author | andi <andi@splitbrain.org> | 2005-04-26 21:17:26 +0200 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-04-26 21:17:26 +0200 |
commit | c3d8e19b99bca531a2914814bba707959107c843 (patch) | |
tree | a7f5b9ecc990d594dbe8d8e48c2726c87efb4665 | |
parent | 7764a90a026393e86091d5f01533f67f7930ded6 (diff) | |
download | rpg-c3d8e19b99bca531a2914814bba707959107c843.tar.gz rpg-c3d8e19b99bca531a2914814bba707959107c843.tar.bz2 |
fix for sectionediting #281
darcs-hash:20050426191726-9977f-f9e8bd35c6d8aebf251ddb671ed05b48ef14e5e9.gz
-rw-r--r-- | inc/common.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/common.php b/inc/common.php index b44255c34..8cfe4eea8 100644 --- a/inc/common.php +++ b/inc/common.php @@ -392,7 +392,7 @@ function rawWikiSlices($range,$id,$rev=''){ list($from,$to) = split('-',$range,2); $text = io_readFile(wikiFN($id,$rev)); if(!$from) $from = 0; - if(!$to) $to = strlen($text); + if(!$to) $to = strlen($text)+1; $slices[0] = substr($text,0,$from-1); $slices[1] = substr($text,$from-1,$to-$from); |