]> granicus.if.org Git - php/commitdiff
cyscape's "current" browscap.ini file doesn't terminate the last line
authorHartmut Holzgraefe <hholzgra@php.net>
Wed, 7 Jun 2000 05:47:24 +0000 (05:47 +0000)
committerHartmut Holzgraefe <hholzgra@php.net>
Wed, 7 Jun 2000 05:47:24 +0000 (05:47 +0000)
in the file with a newline character
this resulted in a parse error

main/configuration-parser.y

index a201ce5eb468d175638db04c3072db4168adc67a..852e4dc29161854d5ae59da463036df667b51afd 100644 (file)
@@ -548,6 +548,7 @@ string_or_value:
        |       CFG_TRUE { $$ = $1; }
        |       CFG_FALSE { $$ = $1; }
        |       '\n' { $$.value.str.val = strdup(""); $$.value.str.len=0; $$.type = IS_STRING; }
+       |       '\0' { $$.value.str.val = strdup(""); $$.value.str.len=0; $$.type = IS_STRING; }
 ;
 
 expr: