From f68bba1292ee6df54d480a320c567db629af2927 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Sun, 12 Sep 2010 23:18:58 +0000 Subject: [PATCH] Be more careful when parsing value lists - in case we process the last line of a stanza which does _not_ close with a newline, we're accessing a not existing string index. --- src/IDF/Scm/Monotone/BasicIO.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/IDF/Scm/Monotone/BasicIO.php b/src/IDF/Scm/Monotone/BasicIO.php index 0562c9b..78707c5 100644 --- a/src/IDF/Scm/Monotone/BasicIO.php +++ b/src/IDF/Scm/Monotone/BasicIO.php @@ -75,6 +75,9 @@ class IDF_Scm_Monotone_BasicIO } ++$pos; // closing quote + if ($pos >= strlen($in)) + break; + if ($in[$pos] == ' ') { ++$pos; // space ++$valCount;