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:
parent
37d0ccc728
commit
f68bba1292
@ -75,6 +75,9 @@ class IDF_Scm_Monotone_BasicIO
|
||||
}
|
||||
++$pos; // closing quote
|
||||
|
||||
if ($pos >= strlen($in))
|
||||
break;
|
||||
|
||||
if ($in[$pos] == ' ') {
|
||||
++$pos; // space
|
||||
++$valCount;
|
||||
|
Loading…
Reference in New Issue
Block a user