Message ID | a104afd5e1de792fadd51bbd6887725880dd23f9.1682956419.git.me@ttaylorr.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 16b305cd2ba1747bcc6d160665eccdbbf7f2ea10 |
Headers | show |
Series | contrib/credential: avoid protocol injection attacks | expand |
diff --git a/credential.c b/credential.c index e6417bf880..96fc0daa35 100644 --- a/credential.c +++ b/credential.c @@ -238,6 +238,8 @@ int credential_read(struct credential *c, FILE *fp) } else if (!strcmp(key, "path")) { free(c->path); c->path = xstrdup(value); + } else if (!strcmp(key, "wwwauth[]")) { + strvec_push(&c->wwwauth_headers, value); } else if (!strcmp(key, "password_expiry_utc")) { errno = 0; c->password_expiry_utc = parse_timestamp(value, NULL, 10);