[phpcvsview-cvs-updates] phpcvsview phpcvs.php,1.16,1.17
Status: Pre-Alpha
Brought to you by:
bcheesem
From: Sijis A. <si...@us...> - 2004-10-06 08:33:06
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21899 Modified Files: phpcvs.php Log Message: - fixed logic error of parsing the raw date: data Index: phpcvs.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/phpcvs.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** phpcvs.php 5 Oct 2004 17:54:32 -0000 1.16 --- phpcvs.php 6 Oct 2004 08:32:49 -0000 1.17 *************** *** 860,867 **** if (strncmp($Line, "date:", 5) == 0) { $Segment = explode(";", $Line); ! for($i = 0; $i <= sizeof($Segment); $i++){ ! $SepPos = trim(strpos($Segment[$i], ":")); ! $Name = trim(substr($Segment[$i], 0, $SepPos)); ! $Value = trim(substr($Segment[$i], $SepPos+1)); $this->FILES[$FileCount]["Revisions"]["$CurrentRevision"]["$Name"] = $Value; } --- 860,867 ---- if (strncmp($Line, "date:", 5) == 0) { $Segment = explode(";", $Line); ! foreach($Segment as $Part){ ! $SepPos = trim(strpos($Part, ":")); ! $Name = trim(substr($Part, 0, $SepPos)); ! $Value = trim(substr($Part, $SepPos+1)); $this->FILES[$FileCount]["Revisions"]["$CurrentRevision"]["$Name"] = $Value; } |