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.
This commit is contained in:
Thomas Keller 2010-09-12 23:18:58 +00:00
parent 37d0ccc728
commit f68bba1292

View File

@ -75,6 +75,9 @@ class IDF_Scm_Monotone_BasicIO
}
++$pos; // closing quote
if ($pos >= strlen($in))
break;
if ($in[$pos] == ' ') {
++$pos; // space
++$valCount;