From c3d8e19b99bca531a2914814bba707959107c843 Mon Sep 17 00:00:00 2001 From: andi Date: Tue, 26 Apr 2005 21:17:26 +0200 Subject: fix for sectionediting #281 darcs-hash:20050426191726-9977f-f9e8bd35c6d8aebf251ddb671ed05b48ef14e5e9.gz --- inc/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3