• Matt Holt's avatar
    caddyfile: Fix errors caught by fuzzing (#2097) · 64c18a7c
    Matt Holt authored
    * caddyfile: More robust parsing for 'import' (fixes #2096)
    
    The fix for hanging involves limiting the number of wildcards in an
    import pattern to just 1. Otherwise some patterns can expand to the
    entire disk.
    
    The other fix requires that the end string for an environment variable
    expansion come after the start string.
    
    * caddyfile: Fix more fuzzing errors
    64c18a7c
parse.go 13.4 KB