]> granicus.if.org Git - php/commitdiff
fixed bug, where a linebreak immediately after an opening quote of a value caused...
authorChristoph M. Becker <cmbecker69@gmx.de>
Thu, 4 Jun 2015 00:40:05 +0000 (02:40 +0200)
committerAnatol Belski <ab@php.net>
Wed, 10 Jun 2015 08:39:37 +0000 (10:39 +0200)
Zend/zend_ini_scanner.l

index a0a4df7d4992d499e7e259d32276c785d254bb1b..6019bf2fbc96c9b0dc8606f795a7aa2473560c2b 100644 (file)
@@ -472,7 +472,7 @@ end_raw_value_chars:
        }
 
        /* Eat leading and trailing double quotes */
-       if (yytext[0] == '"' && yytext[yyleng - 1] == '"') {
+       if (yyleng > 1 && yytext[0] == '"' && yytext[yyleng - 1] == '"') {
                SCNG(yy_text)++;
                yyleng = yyleng - 2;
        } else if (sc) {