X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=config.c;h=510456ceb59d5608d13164fe976631b3ba874fd6;hb=5cbb401dbaff5fd810a85b84333cb0c22d264f36;hp=f3c4fa42ac759157373885924b91a4a43f59953c;hpb=013f276eb78967f9742654ebde303c2fbe7a6cd6;p=git.git diff --git a/config.c b/config.c index f3c4fa42a..510456ceb 100644 --- a/config.c +++ b/config.c @@ -64,7 +64,12 @@ static char *parse_value(void) case 'n': c = '\n'; break; - return NULL; + /* Some characters escape as themselves */ + case '\\': case '"': + break; + /* Reject unknown escape sequences */ + default: + return NULL; } value[len++] = c; continue;